mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-22 00:36:29 +00:00
Fix typo in network discovery example (#1785)
This commit is contained in:
parent
98cd588e07
commit
57ec8e95a5
@ -197,7 +197,7 @@ from homeassistant.components import network
|
||||
adapters = await network.async_get_adapters(hass)
|
||||
|
||||
for adapter in adapters:
|
||||
for ip_info in adapater["ipv4"]:
|
||||
for ip_info in adapter["ipv4"]:
|
||||
local_ip = ip_info["address"]
|
||||
network_prefix = ip_info["network_prefix"]
|
||||
ip_net = ip_network(f"{local_ip}/{network_prefix}", False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user