mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Only allow ethernet and wi-fi interfaces as unique ID in webmin (#113084)
This commit is contained in:
parent
e6f5b08264
commit
9d10e42d79
@ -43,5 +43,7 @@ def get_instance_from_options(
|
||||
def get_sorted_mac_addresses(data: dict[str, Any]) -> list[str]:
|
||||
"""Return a sorted list of mac addresses."""
|
||||
return sorted(
|
||||
[iface["ether"] for iface in data["active_interfaces"] if "ether" in iface]
|
||||
iface["ether"]
|
||||
for iface in data["active_interfaces"]
|
||||
if "ether" in iface and iface["name"].startswith(("en", "eth", "wl"))
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user