mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Handle older Izone controller (#45218)
* Updated to new library * Fixed config flow exception
This commit is contained in:
parent
2044b33eb6
commit
7c7b357357
@ -6,6 +6,7 @@ import logging
|
|||||||
from async_timeout import timeout
|
from async_timeout import timeout
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
from homeassistant.core import callback
|
||||||
from homeassistant.helpers import config_entry_flow
|
from homeassistant.helpers import config_entry_flow
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||||
|
|
||||||
@ -18,9 +19,12 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
async def _async_has_devices(hass):
|
async def _async_has_devices(hass):
|
||||||
|
|
||||||
controller_ready = asyncio.Event()
|
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)
|
disco = await async_start_discovery_service(hass)
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"domain": "izone",
|
"domain": "izone",
|
||||||
"name": "iZone",
|
"name": "iZone",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/izone",
|
"documentation": "https://www.home-assistant.io/integrations/izone",
|
||||||
"requirements": ["python-izone==1.1.2"],
|
"requirements": ["python-izone==1.1.3"],
|
||||||
"codeowners": ["@Swamp-Ig"],
|
"codeowners": ["@Swamp-Ig"],
|
||||||
"config_flow": true
|
"config_flow": true
|
||||||
}
|
}
|
||||||
|
@ -1768,7 +1768,7 @@ python-gitlab==1.6.0
|
|||||||
python-hpilo==4.3
|
python-hpilo==4.3
|
||||||
|
|
||||||
# homeassistant.components.izone
|
# homeassistant.components.izone
|
||||||
python-izone==1.1.2
|
python-izone==1.1.3
|
||||||
|
|
||||||
# homeassistant.components.joaoapps_join
|
# homeassistant.components.joaoapps_join
|
||||||
python-join-api==0.0.6
|
python-join-api==0.0.6
|
||||||
|
@ -882,7 +882,7 @@ python-ecobee-api==0.2.8
|
|||||||
python-forecastio==1.4.0
|
python-forecastio==1.4.0
|
||||||
|
|
||||||
# homeassistant.components.izone
|
# homeassistant.components.izone
|
||||||
python-izone==1.1.2
|
python-izone==1.1.3
|
||||||
|
|
||||||
# homeassistant.components.juicenet
|
# homeassistant.components.juicenet
|
||||||
python-juicenet==1.0.1
|
python-juicenet==1.0.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user