1
0
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:
Otto Winter
2019-05-21 12:23:38 +02:00
parent a323679771
commit 999c1a5357
9 changed files with 30 additions and 6 deletions

View File

@@ -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)