1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Adjust async_step_homekit signature for strict typing (#59745)

* Use ZeroconfServiceInfo in async_step_homekit

* Update DiscoveryFlowHandler

* Update components
This commit is contained in:
epenet
2021-11-16 00:27:04 +01:00
committed by GitHub
parent c0a8cea6fb
commit 4d96ca3ddb
5 changed files with 29 additions and 16 deletions

View File

@@ -1354,10 +1354,10 @@ class ConfigFlow(data_entry_flow.FlowHandler):
return await self.async_step_discovery(discovery_info)
async def async_step_homekit(
self, discovery_info: DiscoveryInfoType
self, discovery_info: ZeroconfServiceInfo
) -> data_entry_flow.FlowResult:
"""Handle a flow initialized by Homekit discovery."""
return await self.async_step_discovery(discovery_info)
return await self.async_step_discovery(cast(dict, discovery_info))
async def async_step_mqtt(
self, discovery_info: DiscoveryInfoType