Skip to content

Commit 8ed88d4

Browse files
authored
Add Reolink restart button for IPC cams (#155710)
1 parent d098ada commit 8ed88d4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

homeassistant/components/reolink/button.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ class ReolinkHostButtonEntityDescription(
133133
supported=lambda api, ch: api.supported(ch, "ptz_guard"),
134134
method=lambda api, ch: api.set_ptz_guard(ch, command=GuardEnum.set.value),
135135
),
136+
ReolinkButtonEntityDescription(
137+
key="reboot",
138+
always_available=True,
139+
device_class=ButtonDeviceClass.RESTART,
140+
entity_category=EntityCategory.CONFIG,
141+
entity_registry_enabled_default=False,
142+
supported=lambda api, ch: api.supported(ch, "reboot"),
143+
method=lambda api, ch: api.reboot(ch),
144+
),
136145
)
137146

138147
HOST_BUTTON_ENTITIES = (

0 commit comments

Comments
 (0)