diff --git a/homeassistant/components/reolink/host.py b/homeassistant/components/reolink/host.py index d552c8daef5..983ab293f69 100644 --- a/homeassistant/components/reolink/host.py +++ b/homeassistant/components/reolink/host.py @@ -68,8 +68,6 @@ class ReolinkHost: async def async_init(self) -> None: """Connect to Reolink host.""" - self._api.expire_session() - await self._api.get_host_data() if self._api.mac_address is None: @@ -301,9 +299,10 @@ class ReolinkHost: ) 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", {}) else: - async_dispatcher_send(hass, f"{webhook_id}_{channel}", {}) + for channel in channels: + async_dispatcher_send(hass, f"{webhook_id}_{channel}", {}) diff --git a/homeassistant/components/reolink/manifest.json b/homeassistant/components/reolink/manifest.json index ea32b4ac016..c4155a0ceb6 100644 --- a/homeassistant/components/reolink/manifest.json +++ b/homeassistant/components/reolink/manifest.json @@ -13,5 +13,5 @@ "documentation": "https://www.home-assistant.io/integrations/reolink", "iot_class": "local_push", "loggers": ["reolink_aio"], - "requirements": ["reolink-aio==0.3.4"] + "requirements": ["reolink-aio==0.4.0"] } diff --git a/requirements_all.txt b/requirements_all.txt index 5d635166a09..433855ef8c1 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2231,7 +2231,7 @@ regenmaschine==2022.11.0 renault-api==0.1.11 # homeassistant.components.reolink -reolink-aio==0.3.4 +reolink-aio==0.4.0 # homeassistant.components.python_script restrictedpython==6.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 2ae214d7f84..0d2e9ef382f 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1576,7 +1576,7 @@ regenmaschine==2022.11.0 renault-api==0.1.11 # homeassistant.components.reolink -reolink-aio==0.3.4 +reolink-aio==0.4.0 # homeassistant.components.python_script restrictedpython==6.0