Change entity category of IR light setting from control to config (#91382)

This commit is contained in:
krazos 2023-04-17 09:10:06 +00:00 committed by GitHub
parent a5b863cd75
commit 717898fc92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,7 @@ LIGHT_ENTITIES = (
key="ir_lights",
name="Infra red lights in night mode",
icon="mdi:led-off",
entity_category=EntityCategory.CONFIG,
supported_fn=lambda api, ch: api.supported(ch, "ir_lights"),
is_on_fn=lambda api, ch: api.ir_enabled(ch),
turn_on_off_fn=lambda api, ch, value: api.set_ir_lights(ch, value),