diff --git a/homeassistant/components/izone/config_flow.py b/homeassistant/components/izone/config_flow.py index add1bb47a54..a64356051d0 100644 --- a/homeassistant/components/izone/config_flow.py +++ b/homeassistant/components/izone/config_flow.py @@ -6,6 +6,7 @@ import logging from async_timeout import timeout from homeassistant import config_entries +from homeassistant.core import callback from homeassistant.helpers import config_entry_flow from homeassistant.helpers.dispatcher import async_dispatcher_connect @@ -18,9 +19,12 @@ _LOGGER = logging.getLogger(__name__) async def _async_has_devices(hass): controller_ready = asyncio.Event() - async_dispatcher_connect( - hass, DISPATCH_CONTROLLER_DISCOVERED, lambda x: controller_ready.set() - ) + + @callback + def dispatch_discovered(_): + controller_ready.set() + + async_dispatcher_connect(hass, DISPATCH_CONTROLLER_DISCOVERED, dispatch_discovered) disco = await async_start_discovery_service(hass) diff --git a/homeassistant/components/izone/manifest.json b/homeassistant/components/izone/manifest.json index 1db99b1a0e3..4bdade41605 100644 --- a/homeassistant/components/izone/manifest.json +++ b/homeassistant/components/izone/manifest.json @@ -2,7 +2,7 @@ "domain": "izone", "name": "iZone", "documentation": "https://www.home-assistant.io/integrations/izone", - "requirements": ["python-izone==1.1.2"], + "requirements": ["python-izone==1.1.3"], "codeowners": ["@Swamp-Ig"], "config_flow": true } diff --git a/requirements_all.txt b/requirements_all.txt index b3e716dc8b8..f8ef5efdc4f 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1768,7 +1768,7 @@ python-gitlab==1.6.0 python-hpilo==4.3 # homeassistant.components.izone -python-izone==1.1.2 +python-izone==1.1.3 # homeassistant.components.joaoapps_join python-join-api==0.0.6 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 235bc93cd2a..468adca1ecb 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -882,7 +882,7 @@ python-ecobee-api==0.2.8 python-forecastio==1.4.0 # homeassistant.components.izone -python-izone==1.1.2 +python-izone==1.1.3 # homeassistant.components.juicenet python-juicenet==1.0.1