mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
Handle LinkPlay devices with no mac (#136272)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
e7a4f5fd27
commit
0caa1ed825
@ -44,9 +44,15 @@ class LinkPlayBaseEntity(Entity):
|
||||
if model != MANUFACTURER_GENERIC:
|
||||
model_id = bridge.device.properties["project"]
|
||||
|
||||
connections: set[tuple[str, str]] = set()
|
||||
if "MAC" in bridge.device.properties:
|
||||
connections.add(
|
||||
(dr.CONNECTION_NETWORK_MAC, bridge.device.properties["MAC"])
|
||||
)
|
||||
|
||||
self._attr_device_info = dr.DeviceInfo(
|
||||
configuration_url=bridge.endpoint,
|
||||
connections={(dr.CONNECTION_NETWORK_MAC, bridge.device.properties["MAC"])},
|
||||
connections=connections,
|
||||
hw_version=bridge.device.properties["hardware"],
|
||||
identifiers={(DOMAIN, bridge.device.uuid)},
|
||||
manufacturer=manufacturer,
|
||||
|
Loading…
x
Reference in New Issue
Block a user