1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-26 20:53:50 +00:00
This commit is contained in:
J. Nick Koston
2025-10-21 13:44:46 -10:00
parent f9fe2d21e5
commit 35f3c6b098

View File

@@ -383,7 +383,7 @@ async def to_code(config):
if networks:
cg.add(var.init_sta(len(networks)))
def add_sta(ap, network):
def add_sta(ap: cg.MockObj, network: dict) -> None:
ip_config = network.get(CONF_MANUAL_IP, config.get(CONF_MANUAL_IP))
cg.add(var.add_sta(wifi_network(network, ap, ip_config)))