Use dataclass properties in tplink discovery (#60742)

Co-authored-by: epenet <epenet@users.noreply.github.com>
pull/60814/head
epenet 2021-12-01 18:01:51 +01:00 committed by GitHub
parent 4fa58b1ecb
commit aefd89d8f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
async def async_step_dhcp(self, discovery_info: dhcp.DhcpServiceInfo) -> FlowResult:
"""Handle discovery via dhcp."""
return await self._async_handle_discovery(
discovery_info[dhcp.IP_ADDRESS], discovery_info[dhcp.MAC_ADDRESS]
discovery_info.ip, discovery_info.macaddress
)
async def async_step_discovery(