From 96a327dea2b0e4cd43984aa72ef570c339a411d2 Mon Sep 17 00:00:00 2001 From: NP v/d Spek Date: Tue, 2 Apr 2024 19:39:43 +0200 Subject: [PATCH] done some CI fixes --- esphome/components/max7219digit/display.py | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/esphome/components/max7219digit/display.py b/esphome/components/max7219digit/display.py index 35806e06a7..be7c8e9bad 100644 --- a/esphome/components/max7219digit/display.py +++ b/esphome/components/max7219digit/display.py @@ -115,21 +115,18 @@ DisplayReverseAction = max7219_ns.class_("DisplayReverseAction", automation.Acti DisplayIntensityAction = max7219_ns.class_("DisplayIntensityAction", automation.Action) -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_OFF_ACTION_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( - { - cv.Optional(CONF_STATE, default=True): True, - } - ) + { + cv.Required(CONF_ID): cv.use_id(MAX7219Component), + cv.Optional(CONF_STATE, default=True): True, + } )