1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-16 07:27:50 +02:00

Merge branch 'integration' into memory_api

This commit is contained in:
J. Nick Koston 2025-10-12 20:22:31 -10:00
commit e28599b403
No known key found for this signature in database

View File

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