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:
commit
e28599b403
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user