mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
parent
8780db82e5
commit
f8075f2dfd
@ -68,8 +68,6 @@ class ReolinkHost:
|
|||||||
|
|
||||||
async def async_init(self) -> None:
|
async def async_init(self) -> None:
|
||||||
"""Connect to Reolink host."""
|
"""Connect to Reolink host."""
|
||||||
self._api.expire_session()
|
|
||||||
|
|
||||||
await self._api.get_host_data()
|
await self._api.get_host_data()
|
||||||
|
|
||||||
if self._api.mac_address is None:
|
if self._api.mac_address is None:
|
||||||
@ -301,9 +299,10 @@ class ReolinkHost:
|
|||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
channel = await self._api.ONVIF_event_callback(data)
|
channels = await self._api.ONVIF_event_callback(data)
|
||||||
|
|
||||||
if channel is None:
|
if channels is None:
|
||||||
async_dispatcher_send(hass, f"{webhook_id}_all", {})
|
async_dispatcher_send(hass, f"{webhook_id}_all", {})
|
||||||
else:
|
else:
|
||||||
|
for channel in channels:
|
||||||
async_dispatcher_send(hass, f"{webhook_id}_{channel}", {})
|
async_dispatcher_send(hass, f"{webhook_id}_{channel}", {})
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "Reolink IP NVR/camera",
|
"name": "Reolink IP NVR/camera",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/reolink",
|
"documentation": "https://www.home-assistant.io/integrations/reolink",
|
||||||
"requirements": ["reolink-aio==0.3.4"],
|
"requirements": ["reolink-aio==0.4.0"],
|
||||||
"dependencies": ["webhook"],
|
"dependencies": ["webhook"],
|
||||||
"codeowners": ["@starkillerOG"],
|
"codeowners": ["@starkillerOG"],
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
|
@ -2227,7 +2227,7 @@ regenmaschine==2022.11.0
|
|||||||
renault-api==0.1.11
|
renault-api==0.1.11
|
||||||
|
|
||||||
# homeassistant.components.reolink
|
# homeassistant.components.reolink
|
||||||
reolink-aio==0.3.4
|
reolink-aio==0.4.0
|
||||||
|
|
||||||
# homeassistant.components.python_script
|
# homeassistant.components.python_script
|
||||||
restrictedpython==6.0
|
restrictedpython==6.0
|
||||||
|
@ -1572,7 +1572,7 @@ regenmaschine==2022.11.0
|
|||||||
renault-api==0.1.11
|
renault-api==0.1.11
|
||||||
|
|
||||||
# homeassistant.components.reolink
|
# homeassistant.components.reolink
|
||||||
reolink-aio==0.3.4
|
reolink-aio==0.4.0
|
||||||
|
|
||||||
# homeassistant.components.python_script
|
# homeassistant.components.python_script
|
||||||
restrictedpython==6.0
|
restrictedpython==6.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user