File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -203,15 +203,15 @@ async def test_tuya_energy_meter_quirk_energy_direction_align(
203
203
)
204
204
205
205
# update Metering attributes
206
+ channel_ep .smartenergy_metering .update_attribute (
207
+ Metering .AttributeDefs .instantaneous_demand .name + UNSIGNED_ATTR_SUFFIX ,
208
+ POWER ,
209
+ )
206
210
channel_ep .smartenergy_metering .update_attribute (
207
211
# The UNSIGNED_ATTR_SUFFIX applies energy direction on bidirectional devices
208
212
Metering .AttributeDefs .current_summ_received .name ,
209
213
SUMM_RECEIVED ,
210
214
)
211
- channel_ep .smartenergy_metering .update_attribute (
212
- Metering .AttributeDefs .instantaneous_demand .name + UNSIGNED_ATTR_SUFFIX ,
213
- POWER ,
214
- )
215
215
216
216
# verify the Metering attributes were updated correctly
217
217
assert len (listeners [channel ]["metering" ].attribute_updates ) == 2
You can’t perform that action at this time.
0 commit comments