Bump reolink-aio to 0.9.1 (#118655)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
d43d12905d
commit
cba07540e9
7 changed files with 56 additions and 16 deletions
|
@ -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)
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue