1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-20 18:53:47 +01:00
This commit is contained in:
J. Nick Koston
2025-10-12 20:21:56 -10:00
parent 4d55c8f309
commit d191d1e99a

View File

@@ -487,8 +487,9 @@ def request_wifi_scan_results():
async def final_step(): async def final_step():
"""Final code generation step to configure scan result retention.""" """Final code generation step to configure scan result retention."""
if _FLAGS["keep_scan_results"]: if _FLAGS["keep_scan_results"]:
wifi_var = cg.MockObj(id="global_wifi_component", base="wifi::WiFiComponent *") cg.add(
cg.add(wifi_var.set_keep_scan_results(True)) cg.RawExpression("wifi::global_wifi_component->set_keep_scan_results(true)")
)
@automation.register_action( @automation.register_action(