mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Add fallback to entry_id when no mac address is retrieved in enigma2 (#119185)
This commit is contained in:
parent
57cc1f841b
commit
c71b6bdac9
@ -141,10 +141,10 @@ class Enigma2Device(MediaPlayerEntity):
|
||||
self._device: OpenWebIfDevice = device
|
||||
self._entry = entry
|
||||
|
||||
self._attr_unique_id = device.mac_address
|
||||
self._attr_unique_id = device.mac_address or entry.entry_id
|
||||
|
||||
self._attr_device_info = DeviceInfo(
|
||||
identifiers={(DOMAIN, device.mac_address)},
|
||||
identifiers={(DOMAIN, self._attr_unique_id)},
|
||||
manufacturer=about["info"]["brand"],
|
||||
model=about["info"]["model"],
|
||||
configuration_url=device.base,
|
||||
|
Loading…
x
Reference in New Issue
Block a user