Lint fixes

This commit is contained in:
tetele 2024-08-02 12:10:57 +03:00
parent 9c6b450e4c
commit c9a098ba0f

View file

@ -26,6 +26,7 @@ ES8388_PRESETS = {
"raspiaudio_radio": Presets.RASPIAUDIO_RADIO, "raspiaudio_radio": Presets.RASPIAUDIO_RADIO,
} }
def validate_instruction_list(): def validate_instruction_list():
return cv.ensure_list( return cv.ensure_list(
cv.Length(min=2, max=2), cv.Length(min=2, max=2),
@ -64,6 +65,7 @@ async def to_code(config):
}) })
cg.add(var.register_macro(macro[CONF_ID], macro[CONF_INSTRUCTIONS])) cg.add(var.register_macro(macro[CONF_ID], macro[CONF_INSTRUCTIONS]))
@automation.register_action( @automation.register_action(
"es8388.execute_macro", "es8388.execute_macro",
MacroAction, MacroAction,