done some CI fixes

This commit is contained in:
NP v/d Spek 2024-04-02 19:39:43 +02:00
parent 74be31f9f9
commit 96a327dea2

View file

@ -115,21 +115,18 @@ DisplayReverseAction = max7219_ns.class_("DisplayReverseAction", automation.Acti
DisplayIntensityAction = max7219_ns.class_("DisplayIntensityAction", automation.Action) DisplayIntensityAction = max7219_ns.class_("DisplayIntensityAction", automation.Action)
MAX7219_OFF_ACTION_SCHEMA = cv.Schema( MAX7219_OFF_ACTION_SCHEMA = automation.maybe_simple_id(
automation.maybe_simple_id( {
{ cv.Required(CONF_ID): cv.use_id(MAX7219Component),
cv.Required(CONF_ID): cv.use_id(MAX7219Component), cv.Optional(CONF_STATE, default=False): False,
cv.Optional(CONF_STATE, default=False): False, }
}
)
) )
MAX7219_ON_ACTION_SCHEMA = automation.maybe_simple_id( MAX7219_ON_ACTION_SCHEMA = automation.maybe_simple_id(
MAX7219_OFF_ACTION_SCHEMA.extend( {
{ cv.Required(CONF_ID): cv.use_id(MAX7219Component),
cv.Optional(CONF_STATE, default=True): True, cv.Optional(CONF_STATE, default=True): True,
} }
)
) )