diff --git a/esphome/components/si4713_i2c/__init__.py b/esphome/components/si4713_i2c/__init__.py index 7b6060a714..26f615bc21 100644 --- a/esphome/components/si4713_i2c/__init__.py +++ b/esphome/components/si4713_i2c/__init__.py @@ -541,6 +541,7 @@ SetTunerFrequencyAction = si4713_ns.class_( "SetTunerFrequencyAction", automation.Action, cg.Parented.template(Si4713Component) ) + @automation.register_action( "si4713.set_tuner_frequency", SetTunerFrequencyAction, FREQUENCY_SCHEMA ) @@ -556,9 +557,8 @@ MeasureAction = si4713_ns.class_( "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): var = cg.new_Pvariable(action_id, template_arg) await cg.register_parented(var, config[CONF_ID])