Improve HomeKit discovered Hue config flow (#47729)
This commit is contained in:
parent
3ad4c26f98
commit
10535018cc
2 changed files with 19 additions and 1 deletions
|
@ -210,6 +210,17 @@ class HueFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
self.bridge = bridge
|
||||
return await self.async_step_link()
|
||||
|
||||
async def async_step_homekit(self, discovery_info):
|
||||
"""Handle a discovered Hue bridge on HomeKit.
|
||||
|
||||
The bridge ID communicated over HomeKit differs, so we cannot use that
|
||||
as the unique identifier. Therefore, this method uses discovery without
|
||||
a unique ID.
|
||||
"""
|
||||
self.bridge = self._async_get_bridge(discovery_info[CONF_HOST])
|
||||
await self._async_handle_discovery_without_unique_id()
|
||||
return await self.async_step_link()
|
||||
|
||||
async def async_step_import(self, import_info):
|
||||
"""Import a new bridge as a config entry.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue