mirror of
https://github.com/esphome/esphome.git
synced 2025-10-20 18:53:47 +01:00
preen
This commit is contained in:
@@ -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(
|
||||||
|
Reference in New Issue
Block a user