From 64a4218a244ebccc3eb21900fce7bd05138fc035 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 1 Dec 2021 17:52:29 +0100 Subject: [PATCH] Use dataclass properties in squeezebox discovery (#60738) Co-authored-by: epenet --- homeassistant/components/squeezebox/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/squeezebox/config_flow.py b/homeassistant/components/squeezebox/config_flow.py index ac5bf8b580e..03c5f45e357 100644 --- a/homeassistant/components/squeezebox/config_flow.py +++ b/homeassistant/components/squeezebox/config_flow.py @@ -192,7 +192,7 @@ class SqueezeboxConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): _LOGGER.debug( "Reached dhcp discovery of a player with info: %s", discovery_info ) - await self.async_set_unique_id(format_mac(discovery_info[dhcp.MAC_ADDRESS])) + await self.async_set_unique_id(format_mac(discovery_info.macaddress)) self._abort_if_unique_id_configured() _LOGGER.debug("Configuring dhcp player with unique id: %s", self.unique_id)