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

ESPHome error when using number input #21

Closed
wildekek opened this issue Oct 18, 2023 · 1 comment
Closed

ESPHome error when using number input #21

wildekek opened this issue Oct 18, 2023 · 1 comment

Comments

@wildekek
Copy link

ESPHome config

number:
  - platform: opentherm
    t_dhw_set:
      name: "Boiler DHW Setpoint"
    max_t_set:
      name: "Boiler Max Setpoint"

ESPHome output

INFO ESPHome 2023.10.0
INFO Reading configuration /config/esphome/heating-controller.yaml...
INFO Generating C++ source...
Traceback (most recent call last):
  File "/usr/local/bin/esphome", line 33, in <module>
    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/f21ab308/components/opentherm/number.py", line 34, in to_code
    keys = await generate.component_to_code(
  File "/data/external_components/f21ab308/components/opentherm/generate.py", line 107, in component_to_code
    entity = await create(conf, key, hub)
  File "/data/external_components/f21ab308/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'
@wildekek
Copy link
Author

Fixed by #15

FreeBear-nc pushed a commit to FreeBear-nc/esphome-opentherm that referenced this issue Nov 27, 2024
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

1 participant