From 74be31f9f99d62e4d3e3c43be7944cc575eeaa39 Mon Sep 17 00:00:00 2001 From: NP v/d Spek Date: Tue, 2 Apr 2024 19:29:59 +0200 Subject: [PATCH] done some CI fixes --- esphome/components/max7219digit/display.py | 15 +++++++++------ esphome/components/max7219digit/max7219digit.h | 1 - 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/esphome/components/max7219digit/display.py b/esphome/components/max7219digit/display.py index 5b137b0524..35806e06a7 100644 --- a/esphome/components/max7219digit/display.py +++ b/esphome/components/max7219digit/display.py @@ -115,12 +115,15 @@ DisplayReverseAction = max7219_ns.class_("DisplayReverseAction", automation.Acti DisplayIntensityAction = max7219_ns.class_("DisplayIntensityAction", automation.Action) -MAX7219_OFF_ACTION_SCHEMA = automation.maybe_simple_id( - { - cv.Required(CONF_ID): cv.use_id(MAX7219Component), - cv.Optional(CONF_STATE, default=False): False, - } +MAX7219_OFF_ACTION_SCHEMA = cv.Schema( + automation.maybe_simple_id( + { + cv.Required(CONF_ID): cv.use_id(MAX7219Component), + cv.Optional(CONF_STATE, default=False): False, + } + ) ) + MAX7219_ON_ACTION_SCHEMA = automation.maybe_simple_id( MAX7219_OFF_ACTION_SCHEMA.extend( { @@ -183,5 +186,5 @@ MAX7219_INTENSITY_SCHEMA = automation.maybe_simple_id( async def MAX7219_intensity_to_code(config, action_id, template_arg, args): paren = await cg.get_variable(config[CONF_ID]) var = cg.new_Pvariable(action_id, template_arg, paren) - template_ = await cg.templatable(config[CONF_INTENSITY], args, cg.int8) + template_ = await cg.templatable(config[CONF_INTENSITY], args, cg.int_) cg.add(var.set_state(template_)) diff --git a/esphome/components/max7219digit/max7219digit.h b/esphome/components/max7219digit/max7219digit.h index 97fc1f6933..a22d352eee 100644 --- a/esphome/components/max7219digit/max7219digit.h +++ b/esphome/components/max7219digit/max7219digit.h @@ -120,7 +120,6 @@ class MAX7219Component : public display::DisplayBuffer, optional writer_local_{}; }; - /* void invert_on_off(bool on_off); void invert_on_off();