Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions homeassistant/components/gogogate2/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ async def async_step_homekit(
) -> data_entry_flow.FlowResult:
"""Handle homekit discovery."""
await self.async_set_unique_id(
discovery_info[zeroconf.ATTR_PROPERTIES][zeroconf.ATTR_PROPERTIES_ID]
discovery_info.properties[zeroconf.ATTR_PROPERTIES_ID]
)
return await self._async_discovery_handler(discovery_info[zeroconf.ATTR_HOST])
return await self._async_discovery_handler(discovery_info.host)

async def async_step_dhcp(
self, discovery_info: dhcp.DhcpServiceInfo
) -> data_entry_flow.FlowResult:
"""Handle dhcp discovery."""
await self.async_set_unique_id(discovery_info[dhcp.MAC_ADDRESS])
return await self._async_discovery_handler(discovery_info[dhcp.IP_ADDRESS])
await self.async_set_unique_id(discovery_info.macaddress)
return await self._async_discovery_handler(discovery_info.ip)

async def _async_discovery_handler(self, ip_address):
"""Start the user flow from any discovery."""
Expand Down