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:
parent
0265946919
commit
01ff9d4d3a
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user