Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: register_number() missing 1 required keyword-only argument: 'step' #27

Open
monterek opened this issue Nov 12, 2023 · 1 comment

Comments

@monterek
Copy link

When installing the example yaml structure, I get the following message.
Source defined at: github://arthurrump/esphome-opentherm@main

INFO ESPHome 2023.10.6
INFO Reading configuration /config/esphome/bramka-ot.yaml...
INFO Generating C++ source...
Traceback (most recent call last):
File "/usr/local/bin/esphome", line 33, in
sys.exit(load_entry_point('esphome', 'console_scripts', 'esphome')())
File "/esphome/esphome/main.py", line 1036, in main
return run_esphome(sys.argv)
File "/esphome/esphome/main.py", line 1023, in run_esphome
rc = POST_CONFIG_ACTIONS[args.command](args, config)
File "/esphome/esphome/main.py", line 454, in command_run
exit_code = write_cpp(config)
File "/esphome/esphome/main.py", line 189, in write_cpp
generate_cpp_contents(config)
File "/esphome/esphome/main.py", line 201, in generate_cpp_contents
CORE.flush_tasks()
File "/esphome/esphome/core/init.py", line 650, in flush_tasks
self.event_loop.flush_tasks()
File "/esphome/esphome/coroutine.py", line 246, in flush_tasks
next(task.iterator)
File "/esphome/esphome/main.py", line 181, in wrapped
await coro(conf)
File "/data/external_components/d4d3a138/components/opentherm/number.py", line 34, in to_code
keys = await generate.component_to_code(
File "/data/external_components/d4d3a138/components/opentherm/generate.py", line 107, in component_to_code
entity = await create(conf, key, hub)
File "/data/external_components/d4d3a138/components/opentherm/number.py", line 18, in new_openthermnumber
await number.register_number(var, config, min_value = config[input.CONF_min_value], max_value = config[input.CONF_max_value])
TypeError: register_number() missing 1 required keyword-only argument: 'step'

@timdiels
Copy link

timdiels commented Nov 13, 2023

See #17 (comment). I'd recommend https://github.com/FreeBear-nc/esphome-opentherm as that one's had recent development and responds well to PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants