From c9a098ba0f5795246b893c8d21c6022c299ff8b5 Mon Sep 17 00:00:00 2001 From: tetele Date: Fri, 2 Aug 2024 12:10:57 +0300 Subject: [PATCH] Lint fixes --- esphome/components/es8388/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esphome/components/es8388/__init__.py b/esphome/components/es8388/__init__.py index 1f39aed9df..3ec2b96523 100644 --- a/esphome/components/es8388/__init__.py +++ b/esphome/components/es8388/__init__.py @@ -26,6 +26,7 @@ ES8388_PRESETS = { "raspiaudio_radio": Presets.RASPIAUDIO_RADIO, } + def validate_instruction_list(): return cv.ensure_list( 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])) + @automation.register_action( "es8388.execute_macro", MacroAction, @@ -79,4 +81,4 @@ async def execute_macro_to_code(config, action_id, template_arg, args): await cg.register_parented(var, config[CONF_ES8388_ID]) cg.add(var.set_macro_id(config[CONF_ID])) - return var \ No newline at end of file + return var