formatting

This commit is contained in:
Gábor Poczkodi 2024-10-26 02:01:17 +02:00
parent 556cb74d5f
commit 955a486eba

View file

@ -541,6 +541,7 @@ SetTunerFrequencyAction = si4713_ns.class_(
"SetTunerFrequencyAction", automation.Action, cg.Parented.template(Si4713Component) "SetTunerFrequencyAction", automation.Action, cg.Parented.template(Si4713Component)
) )
@automation.register_action( @automation.register_action(
"si4713.set_tuner_frequency", SetTunerFrequencyAction, FREQUENCY_SCHEMA "si4713.set_tuner_frequency", SetTunerFrequencyAction, FREQUENCY_SCHEMA
) )
@ -556,9 +557,8 @@ MeasureAction = si4713_ns.class_(
"MeasureAction", automation.Action, cg.Parented.template(Si4713Component) "MeasureAction", automation.Action, cg.Parented.template(Si4713Component)
) )
@automation.register_action(
"si4713.measure", MeasureAction, FREQUENCY_SCHEMA @automation.register_action("si4713.measure", MeasureAction, FREQUENCY_SCHEMA)
)
async def measure_action_to_code(config, action_id, template_arg, args): async def measure_action_to_code(config, action_id, template_arg, args):
var = cg.new_Pvariable(action_id, template_arg) var = cg.new_Pvariable(action_id, template_arg)
await cg.register_parented(var, config[CONF_ID]) await cg.register_parented(var, config[CONF_ID])