From aefd89d8f29ed145de69ee0267958d6f37e8960e Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 1 Dec 2021 18:01:51 +0100 Subject: [PATCH] Use dataclass properties in tplink discovery (#60742) Co-authored-by: epenet --- homeassistant/components/tplink/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/tplink/config_flow.py b/homeassistant/components/tplink/config_flow.py index f07d8887b85..e2c03dd43f2 100644 --- a/homeassistant/components/tplink/config_flow.py +++ b/homeassistant/components/tplink/config_flow.py @@ -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(