Reolink only fetch data for enabled entities (#104157)
This commit is contained in:
parent
a3dd2b8ea9
commit
381036e46a
7 changed files with 63 additions and 1 deletions
|
@ -41,6 +41,7 @@ class ReolinkLightEntityDescription(
|
|||
LIGHT_ENTITIES = (
|
||||
ReolinkLightEntityDescription(
|
||||
key="floodlight",
|
||||
cmd_key="GetWhiteLed",
|
||||
translation_key="floodlight",
|
||||
icon="mdi:spotlight-beam",
|
||||
supported=lambda api, ch: api.supported(ch, "floodLight"),
|
||||
|
@ -51,6 +52,7 @@ LIGHT_ENTITIES = (
|
|||
),
|
||||
ReolinkLightEntityDescription(
|
||||
key="ir_lights",
|
||||
cmd_key="GetIrLights",
|
||||
translation_key="ir_lights",
|
||||
icon="mdi:led-off",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
|
@ -60,6 +62,7 @@ LIGHT_ENTITIES = (
|
|||
),
|
||||
ReolinkLightEntityDescription(
|
||||
key="status_led",
|
||||
cmd_key="GetPowerLed",
|
||||
translation_key="status_led",
|
||||
icon="mdi:lightning-bolt-circle",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue