mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
Fix lint
This commit is contained in:
parent
eef6236bc9
commit
be7adba352
3 changed files with 5 additions and 6 deletions
|
@ -67,6 +67,7 @@ WiFiEnableAction = wifi_ns.class_("WiFiEnableAction", automation.Action)
|
||||||
WiFiDisableAction = wifi_ns.class_("WiFiDisableAction", automation.Action)
|
WiFiDisableAction = wifi_ns.class_("WiFiDisableAction", automation.Action)
|
||||||
WiFiSetSTAAction = wifi_ns.class_("WiFiSetSTAAction", automation.Action, cg.Component)
|
WiFiSetSTAAction = wifi_ns.class_("WiFiSetSTAAction", automation.Action, cg.Component)
|
||||||
|
|
||||||
|
|
||||||
def validate_password(value):
|
def validate_password(value):
|
||||||
value = cv.string_strict(value)
|
value = cv.string_strict(value)
|
||||||
if not value:
|
if not value:
|
||||||
|
@ -515,8 +516,6 @@ async def wifi_set_sta_to_code(config, action_id, template_arg, args):
|
||||||
var.get_connect_trigger(), [], on_connect_config
|
var.get_connect_trigger(), [], on_connect_config
|
||||||
)
|
)
|
||||||
if on_error_config := config.get(CONF_ON_ERROR):
|
if on_error_config := config.get(CONF_ON_ERROR):
|
||||||
await automation.build_automation(
|
await automation.build_automation(var.get_error_trigger(), [], on_error_config)
|
||||||
var.get_error_trigger(), [], on_error_config
|
|
||||||
)
|
|
||||||
await cg.register_component(var, config)
|
await cg.register_component(var, config)
|
||||||
return var
|
return var
|
||||||
|
|
Loading…
Reference in a new issue