File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
homeassistant/components/improv_ble Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5+ import asyncio
56import logging
67
78from homeassistant .core import HomeAssistant , callback
1516
1617
1718@callback
18- def async_get_provisioning_futures (hass : HomeAssistant ) -> dict :
19+ def async_get_provisioning_futures (
20+ hass : HomeAssistant ,
21+ ) -> dict [str , asyncio .Future [str ]]:
1922 """Get the provisioning futures registry, creating it if needed.
2023
2124 This is a helper function for internal use and testing.
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ async def async_step_identify(
296296 @asynccontextmanager
297297 async def _async_provision_context (
298298 self , ble_mac : str
299- ) -> AsyncIterator [asyncio .Future [str | None ]]:
299+ ) -> AsyncIterator [asyncio .Future [str ]]:
300300 """Context manager to register and cleanup provisioning future."""
301301 future = self .hass .loop .create_future ()
302302 provisioning_futures = async_get_provisioning_futures (self .hass )
Original file line number Diff line number Diff line change 88
99DOMAIN = "improv_ble"
1010
11- PROVISIONING_FUTURES : HassKey [dict [str , asyncio .Future [str | None ]]] = HassKey (DOMAIN )
11+ PROVISIONING_FUTURES : HassKey [dict [str , asyncio .Future [str ]]] = HassKey (DOMAIN )
1212
1313# Timeout in seconds to wait for another integration to register a next flow
1414# after successful provisioning (e.g., ESPHome discovering the device)
You can’t perform that action at this time.
0 commit comments