Use hass.loop.create_future() in envisalink (#100057)

This commit is contained in:
Jan Bouwhuis 2023-09-10 18:25:25 +02:00 committed by GitHub
parent 50382a609c
commit 63852c565f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
zones = conf.get(CONF_ZONES)
partitions = conf.get(CONF_PARTITIONS)
connection_timeout = conf.get(CONF_TIMEOUT)
sync_connect: asyncio.Future[bool] = asyncio.Future()
sync_connect: asyncio.Future[bool] = hass.loop.create_future()
controller = EnvisalinkAlarmPanel(
host,