Skip to content

Commit 6764463

Browse files
authored
Use new Reolink rec_enable flag (home-assistant#153496)
1 parent 7055276 commit 6764463

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

homeassistant/components/reolink/switch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class ReolinkChimeSwitchEntityDescription(
154154
cmd_key="GetRec",
155155
translation_key="record",
156156
entity_category=EntityCategory.CONFIG,
157-
supported=lambda api, ch: api.supported(ch, "recording") and api.is_nvr,
157+
supported=lambda api, ch: api.supported(ch, "rec_enable") and api.is_nvr,
158158
value=lambda api, ch: api.recording_enabled(ch),
159159
method=lambda api, ch, value: api.set_recording(ch, value),
160160
),
@@ -278,7 +278,7 @@ class ReolinkChimeSwitchEntityDescription(
278278
cmd_key="GetRec",
279279
translation_key="record",
280280
entity_category=EntityCategory.CONFIG,
281-
supported=lambda api: api.supported(None, "recording") and not api.is_hub,
281+
supported=lambda api: api.supported(None, "rec_enable") and not api.is_hub,
282282
value=lambda api: api.recording_enabled(),
283283
method=lambda api, value: api.set_recording(None, value),
284284
),

0 commit comments

Comments
 (0)