Skip to content

Commit b73a792

Browse files
authored
Enable Reolink RTSP and ONVIF port when supported (home-assistant#156700)
1 parent 3e20c2e commit b73a792

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

homeassistant/components/reolink/host.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,17 +222,13 @@ async def async_init(self) -> None:
222222
enable_onvif = None
223223
enable_rtmp = None
224224

225-
if not self._api.rtsp_enabled and not self._api.baichuan_only:
225+
if not self._api.rtsp_enabled and self._api.supported(None, "RTSP"):
226226
_LOGGER.debug(
227227
"RTSP is disabled on %s, trying to enable it", self._api.nvr_name
228228
)
229229
enable_rtsp = True
230230

231-
if (
232-
not self._api.onvif_enabled
233-
and onvif_supported
234-
and not self._api.baichuan_only
235-
):
231+
if not self._api.onvif_enabled and onvif_supported:
236232
_LOGGER.debug(
237233
"ONVIF is disabled on %s, trying to enable it", self._api.nvr_name
238234
)

0 commit comments

Comments
 (0)