Skip to content

Commit

Permalink
Remove redundant check for AB summation attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeverley committed Feb 3, 2025
1 parent 102a516 commit e2b76b6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/test_tuya_energy_meter.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,16 +259,11 @@ async def test_tuya_energy_meter_quirk_energy_direction_align(
)

# verify the Metering attributes were updated correctly
assert len(listeners[CH_AB]["metering"].attribute_updates) == 2
assert len(listeners[CH_AB]["metering"].attribute_updates) == 1
assert (
listeners[CH_AB]["metering"].attribute_updates[0][0]
== Metering.AttributeDefs.instantaneous_demand.id
)
assert (
listeners[CH_AB]["metering"].attribute_updates[0][1] == 0
) # -POWER + POWER = 0
assert (
listeners[CH_AB]["metering"].attribute_updates[1][0]
== Metering.AttributeDefs.current_summ_received.id
)
assert listeners[CH_AB]["metering"].attribute_updates[1][1] == SUMM_RECEIVED

0 comments on commit e2b76b6

Please sign in to comment.