mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Use hass.loop.create_future() in envisalink (#100057)
This commit is contained in:
parent
50382a609c
commit
63852c565f
@ -124,7 +124,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
zones = conf.get(CONF_ZONES)
|
zones = conf.get(CONF_ZONES)
|
||||||
partitions = conf.get(CONF_PARTITIONS)
|
partitions = conf.get(CONF_PARTITIONS)
|
||||||
connection_timeout = conf.get(CONF_TIMEOUT)
|
connection_timeout = conf.get(CONF_TIMEOUT)
|
||||||
sync_connect: asyncio.Future[bool] = asyncio.Future()
|
sync_connect: asyncio.Future[bool] = hass.loop.create_future()
|
||||||
|
|
||||||
controller = EnvisalinkAlarmPanel(
|
controller = EnvisalinkAlarmPanel(
|
||||||
host,
|
host,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user