Add all supported number components
This commit is contained in:
parent
290900747c
commit
cf41d224ea
|
@ -50,9 +50,3 @@ async def to_code(config):
|
|||
cg.add(number_.set_cmd(number_name))
|
||||
cg.add(number_.set_tw7100_parent(parent))
|
||||
cg.add(getattr(parent, "set_set_{}".format(number_name.lower()))(number_))
|
||||
|
||||
#if "VOL" in config:
|
||||
# number_ = await number.new_number(config["VOL"], min_value=0, max_value=255, step=1)
|
||||
# cg.add(number_.set_cmd("VOL"))
|
||||
# cg.add(number_.set_tw7100_parent(parent))
|
||||
# cg.add(parent.set_set_volume(number_))
|
||||
|
|
Loading…
Reference in a new issue