mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 04:35:11 +02:00
Add HDR switch to Reolink (#103550)
This commit is contained in:
@@ -309,6 +309,9 @@
|
|||||||
},
|
},
|
||||||
"doorbell_button_sound": {
|
"doorbell_button_sound": {
|
||||||
"name": "Doorbell button sound"
|
"name": "Doorbell button sound"
|
||||||
|
},
|
||||||
|
"hdr": {
|
||||||
|
"name": "HDR"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -152,6 +152,16 @@ SWITCH_ENTITIES = (
|
|||||||
value=lambda api, ch: api.doorbell_button_sound(ch),
|
value=lambda api, ch: api.doorbell_button_sound(ch),
|
||||||
method=lambda api, ch, value: api.set_volume(ch, doorbell_button_sound=value),
|
method=lambda api, ch, value: api.set_volume(ch, doorbell_button_sound=value),
|
||||||
),
|
),
|
||||||
|
ReolinkSwitchEntityDescription(
|
||||||
|
key="hdr",
|
||||||
|
translation_key="hdr",
|
||||||
|
icon="mdi:hdr",
|
||||||
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
|
supported=lambda api, ch: api.supported(ch, "HDR"),
|
||||||
|
value=lambda api, ch: api.HDR_on(ch) is True,
|
||||||
|
method=lambda api, ch, value: api.set_HDR(ch, value),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
NVR_SWITCH_ENTITIES = (
|
NVR_SWITCH_ENTITIES = (
|
||||||
|
Reference in New Issue
Block a user