Bump reolink-aio to 0.9.1 (#118655)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
starkillerOG 2024-06-04 08:00:40 +02:00 committed by GitHub
parent d43d12905d
commit cba07540e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 56 additions and 16 deletions

View file

@ -109,12 +109,14 @@ SELECT_ENTITIES = (
ReolinkSelectEntityDescription(
key="status_led",
cmd_key="GetPowerLed",
translation_key="status_led",
translation_key="doorbell_led",
entity_category=EntityCategory.CONFIG,
get_options=[state.name for state in StatusLedEnum],
get_options=lambda api, ch: api.doorbell_led_list(ch),
supported=lambda api, ch: api.supported(ch, "doorbell_led"),
value=lambda api, ch: StatusLedEnum(api.doorbell_led(ch)).name,
method=lambda api, ch, name: api.set_status_led(ch, StatusLedEnum[name].value),
method=lambda api, ch, name: (
api.set_status_led(ch, StatusLedEnum[name].value, doorbell=True)
),
),
)