Skip to content

Commit

Permalink
Merge pull request #52 from tieskuh/patch-5
Browse files Browse the repository at this point in the history
Update binary_sensor.py - plug lock
  • Loading branch information
cyr-ius authored Jan 5, 2024
2 parents 0f2905c + e3dd64c commit 3127759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/audiconnect/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@
AudiBinarySensorDescription(
icon="mdi:power-plug",
key="plug_lock",
device_class=dc.PLUG,
value_fn=lambda x: False if x == "unlocked" else True,
device_class=dc.LOCK,
value_fn=lambda x: False if x == "locked" else True,
),
AudiBinarySensorDescription(
key="preheater_active",
Expand Down

0 comments on commit 3127759

Please sign in to comment.