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

Compiltatio problem with esphome 2023.4.0 #17

Open
ivhercla opened this issue Apr 21, 2023 · 2 comments
Open

Compiltatio problem with esphome 2023.4.0 #17

ivhercla opened this issue Apr 21, 2023 · 2 comments

Comments

@ivhercla
Copy link

There is a problem when i try to compil.

THNKS


INFO Reading configuration /config/esphome/d1_mini_2.yaml...
WARNING 'd1_mini_2': Using the '_' (underscore) character in the hostname is discouraged as it can cause problems with some DHCP and local name services. For more information, see https://esphome.io/guides/faq.html#why-shouldn-t-i-use-underscores-in-my-device-name
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 965, in main
return run_esphome(sys.argv)
File "/esphome/esphome/main.py", line 952, in run_esphome
rc = POST_CONFIG_ACTIONS[args.command](args, config)
File "/esphome/esphome/main.py", line 397, in command_run
exit_code = write_cpp(config)
File "/esphome/esphome/main.py", line 178, in write_cpp
generate_cpp_contents(config)
File "/esphome/esphome/main.py", line 190, in generate_cpp_contents
CORE.flush_tasks()
File "/esphome/esphome/core/init.py", line 622, 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 170, in wrapped
await coro(conf)
File "/config/esphome/.esphome/external_components/d4d3a138/components/opentherm/number.py", line 34, in to_code
keys = await generate.component_to_code(
File "/config/esphome/.esphome/external_components/d4d3a138/components/opentherm/generate.py", line 107, in component_to_code
entity = await create(conf, key, hub)
File "/config/esphome/.esphome/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'

@Xekz
Copy link

Xekz commented Aug 27, 2023

how compile?

@cadavre
Copy link

cadavre commented Sep 14, 2023

Fix for this is available under #15 .

Before it is merged you can use temporary @ov1d1u repository:

external_components:
  source: github://ov1d1u/esphome-opentherm@main

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

3 participants