diff --git a/esphome/components/ballu_old/climate.py b/esphome/components/ballu_old/climate.py index 76113d85ac..97f1c45c9b 100644 --- a/esphome/components/ballu_old/climate.py +++ b/esphome/components/ballu_old/climate.py @@ -15,6 +15,7 @@ CONFIG_SCHEMA = climate_ir.CLIMATE_IR_SCHEMA.extend( } ) + async def to_code(config): var = cg.new_Pvariable(config[CONF_ID]) await climate_ir.register_climate_ir(var, config)