parent
5cec687247
commit
09a8b8567d
|
@ -129,6 +129,7 @@ SWITCH_ENTITIES = (
|
|||
key="record",
|
||||
translation_key="record",
|
||||
icon="mdi:record-rec",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
supported=lambda api, ch: api.supported(ch, "recording") and api.is_nvr,
|
||||
value=lambda api, ch: api.recording_enabled(ch),
|
||||
method=lambda api, ch, value: api.set_recording(ch, value),
|
||||
|
@ -185,6 +186,7 @@ NVR_SWITCH_ENTITIES = (
|
|||
key="record",
|
||||
translation_key="record",
|
||||
icon="mdi:record-rec",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
supported=lambda api: api.supported(None, "recording"),
|
||||
value=lambda api: api.recording_enabled(),
|
||||
method=lambda api, value: api.set_recording(None, value),
|
||||
|
|
Loading…
Reference in New Issue