Skip to content

Commit

Permalink
Update binary_sensor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cdnninja committed Jun 3, 2024
1 parent bf46583 commit 105b796
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions custom_components/yoto/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ class YotoBinarySensorEntityDescription(BinarySensorEntityDescription):
off_icon="mdi:headphones-off",
entity_category=EntityCategory.DIAGNOSTIC,
),
YotoBinarySensorEntityDescription(
key="sleep_timer_active",
name="Sleep Timer",
is_on=lambda player: player.sleep_timer_active,
device_class=BinarySensorDeviceClass.RUNNING,
),
)


Expand Down

0 comments on commit 105b796

Please sign in to comment.