We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7055276 commit 6764463Copy full SHA for 6764463
homeassistant/components/reolink/switch.py
@@ -154,7 +154,7 @@ class ReolinkChimeSwitchEntityDescription(
154
cmd_key="GetRec",
155
translation_key="record",
156
entity_category=EntityCategory.CONFIG,
157
- supported=lambda api, ch: api.supported(ch, "recording") and api.is_nvr,
+ supported=lambda api, ch: api.supported(ch, "rec_enable") and api.is_nvr,
158
value=lambda api, ch: api.recording_enabled(ch),
159
method=lambda api, ch, value: api.set_recording(ch, value),
160
),
@@ -278,7 +278,7 @@ class ReolinkChimeSwitchEntityDescription(
278
279
280
281
- supported=lambda api: api.supported(None, "recording") and not api.is_hub,
+ supported=lambda api: api.supported(None, "rec_enable") and not api.is_hub,
282
value=lambda api: api.recording_enabled(),
283
method=lambda api, value: api.set_recording(None, value),
284
0 commit comments