mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Use dataclass properties in squeezebox discovery (#60738)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
fa95146aa0
commit
64a4218a24
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user