-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Incompatibility with esphome 2024.10.0 #192
Comments
The error you're encountering:
is likely caused by a configuration issue in your YAML file, specifically in the section where you define presets. Based on the traceback, it seems that the code is expecting a dictionary (which uses the Here's the issue breakdown: In your configuration file under
The problem here is that you're defining Suggested Fix:Choose only one way
Or
Please |
@omerfaruk-aran it's not related to quiet mode. I have it configured properly. `samsung_ac:
` |
@kst84 Can you send your full yaml example? |
config.txt |
OK, I can see that it is used incorrectly in your yaml example. Could you edit your code
to
change this and try it? |
@omerfaruk-aran yeah it compiles now. The question is how it comes to example.yaml ? https://github.com/lanwin/esphome_samsung_ac/blob/main/example.yaml#L75 |
Hi, you're absolutely right! The example YAML was previously missing the flexibility to handle both the short and long versions of the presets. We've now made adjustments to allow users to configure presets using either format, depending on their preference. You can now use either: quiet: true or for a more detailed setup. quiet:
name: "Makes no sound"
enabled: true or mixed quiet:
name: "Makes no sound"
enabled: true
fast: true We've also updated the example.yaml to reflect this change. You can check out the updated PR here: #193 Thank you for pointing this out, and feel free to test it out! |
@omerfaruk-aran Thank you for your help and clarification on the above. Cheers. |
Hi, It looks like the code is not compatible with recent release of esphome 2024.10.0
INFO ESPHome 2024.10.0 INFO Reading configuration /config/klimatyzacja-gora.yaml... INFO Generating C++ source... Traceback (most recent call last): File "/usr/local/bin/esphome", line 8, in <module> sys.exit(main()) ^^^^^^ File "/esphome/esphome/__main__.py", line 1018, in main return run_esphome(sys.argv) ^^^^^^^^^^^^^^^^^^^^^ File "/esphome/esphome/__main__.py", line 1005, in run_esphome rc = POST_CONFIG_ACTIONS[args.command](args, config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/esphome/esphome/__main__.py", line 485, in command_run exit_code = write_cpp(config) ^^^^^^^^^^^^^^^^^ File "/esphome/esphome/__main__.py", line 194, in write_cpp generate_cpp_contents(config) File "/esphome/esphome/__main__.py", line 206, in generate_cpp_contents CORE.flush_tasks() File "/esphome/esphome/core/__init__.py", line 684, 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 186, in wrapped await coro(conf) File "/config/.esphome/external_components/11b80f5a/components/samsung_ac/__init__.py", line 304, in to_code preset_conf.get(CONF_PRESET_NAME, preset_info["displayName"]), ^^^^^^^^^^^^^^^ AttributeError: 'bool' object has no attribute 'get'
The text was updated successfully, but these errors were encountered: