1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-14 14:48:18 +00:00

Make Switch not inherit from Component

This commit is contained in:
Otto Winter 2018-11-10 14:07:11 +01:00
parent 0265946919
commit 01ff9d4d3a

View File

@ -131,7 +131,7 @@ def to_code(config):
remote = None
for remote in get_variable(config[CONF_REMOTE_TRANSMITTER_ID]):
yield
rhs = App.register_component(transmitter_base(config))
rhs = transmitter_base(config)
transmitter = Pvariable(config[CONF_TRANSMITTER_ID], rhs)
if CONF_REPEAT in config: