mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Skip interfaces without mac in enigma2 device_info (#124249)
This commit is contained in:
parent
407e4f6ca2
commit
566c00ef12
@ -72,11 +72,14 @@ class Enigma2UpdateCoordinator(DataUpdateCoordinator[OpenWebIfStatus]):
|
|||||||
self.device_info["model"] = about["info"]["model"]
|
self.device_info["model"] = about["info"]["model"]
|
||||||
self.device_info["manufacturer"] = about["info"]["brand"]
|
self.device_info["manufacturer"] = about["info"]["brand"]
|
||||||
self.device_info[ATTR_IDENTIFIERS] = {
|
self.device_info[ATTR_IDENTIFIERS] = {
|
||||||
(DOMAIN, format_mac(iface["mac"])) for iface in about["info"]["ifaces"]
|
(DOMAIN, format_mac(iface["mac"]))
|
||||||
|
for iface in about["info"]["ifaces"]
|
||||||
|
if "mac" in iface and iface["mac"] is not None
|
||||||
}
|
}
|
||||||
self.device_info[ATTR_CONNECTIONS] = {
|
self.device_info[ATTR_CONNECTIONS] = {
|
||||||
(CONNECTION_NETWORK_MAC, format_mac(iface["mac"]))
|
(CONNECTION_NETWORK_MAC, format_mac(iface["mac"]))
|
||||||
for iface in about["info"]["ifaces"]
|
for iface in about["info"]["ifaces"]
|
||||||
|
if "mac" in iface and iface["mac"] is not None
|
||||||
}
|
}
|
||||||
|
|
||||||
async def _async_update_data(self) -> OpenWebIfStatus:
|
async def _async_update_data(self) -> OpenWebIfStatus:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user