Enable some PERF rules (#112498)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
656ef143da
commit
c8f39911cc
8 changed files with 12 additions and 12 deletions
|
@ -57,7 +57,7 @@ def get_all_network_interfaces(hass: HomeAssistant) -> set[str]:
|
|||
"""Return all network interfaces on system."""
|
||||
psutil_wrapper: ha_psutil = hass.data[DOMAIN]
|
||||
interfaces: set[str] = set()
|
||||
for interface, _ in psutil_wrapper.psutil.net_if_addrs().items():
|
||||
for interface in psutil_wrapper.psutil.net_if_addrs():
|
||||
if interface.startswith("veth"):
|
||||
# Don't load docker virtual network interfaces
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue