mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +00:00
Warn if not registered properly
This commit is contained in:
@@ -63,6 +63,7 @@ def register_fan(var, config):
|
||||
if not CORE.has_id(config[CONF_ID]):
|
||||
var = cg.Pvariable(config[CONF_ID], var)
|
||||
cg.add(cg.App.register_fan(var))
|
||||
yield cg.register_component(var, config)
|
||||
yield setup_fan_core_(var, config)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user