-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
[BUG] Can't compile in ESPHome 2025.2.0b1 #275
Comments
Again an esphome update crashed my component. This is a more complex problem. The internal handling of animations in esphome change. I will investigate... |
@skgsergio pointed to the cause, of the trouble. https://github.com/esphome/esphome/pull/7908/files#diff-4f1cb0c17ef5d328ea36838b7aadaeb4295d06083e8987379b6ce92620dd3204R83-R100 |
It looks like the file loading procedure has been unified into a single function: |
EspHoMaTriXv2/components/ehmtxv2/__init__.py Line 515 in 4610a81
This should be a minor change from Unfortunately for ESPHome to grow as a project, breaking changes must be made which can affect |
I'll try to validate it if I have some time.
Hey man, don't worry happy to report failures to custom components and not pushing to be resolved ASAP. Also the good thing is you can have devices compiled with old versions of ESPHome running in newer versions so is not that it impacts much.
I'm the CI, also reported last version breaking change 😹 |
@lubeda as @jesserockz hinted that part of the build works with that change. However more changes are required, will try to check how to fix it: src/esphome/components/ehmtxv2/EHMTX_icons.cpp: In constructor 'esphome::EHMTX_Icon::EHMTX_Icon(const uint8_t*, int, int, uint32_t, esphome::image::ImageType, std::__cxx11::string, bool, uint16_t)':
src/esphome/components/ehmtxv2/EHMTX_icons.cpp:7:73: error: no matching function for call to 'esphome::animation::Animation::Animation(const uint8_t*&, int&, int&, uint32_t&, esphome::image::ImageType&)'
: Animation(data_start, width, height, animation_frame_count, type)
^
In file included from src/esphome.h:5,
from src/esphome/components/ehmtxv2/EHMTX_icons.cpp:1:
src/esphome/components/animation/animation.h:11:3: note: candidate: 'esphome::animation::Animation::Animation(const uint8_t*, int, int, uint32_t, esphome::image::ImageType, esphome::image::Transparency)'
Animation(const uint8_t *data_start, int width, int height, uint32_t animation_frame_count, image::ImageType type,
^~~~~~~~~
src/esphome/components/animation/animation.h:11:3: note: candidate expects 6 arguments, 5 provided
src/esphome/components/animation/animation.h:9:7: note: candidate: 'constexpr esphome::animation::Animation::Animation(const esphome::animation::Animation&)'
class Animation : public image::Image {
^~~~~~~~~
src/esphome/components/animation/animation.h:9:7: note: candidate expects 1 argument, 5 provided
src/esphome/components/animation/animation.h:9:7: note: candidate: 'constexpr esphome::animation::Animation::Animation(esphome::animation::Animation&&)'
src/esphome/components/animation/animation.h:9:7: note: candidate expects 1 argument, 5 provided
src/esphome/components/ehmtxv2/EHMTX_icons.cpp:13:11: error: 'class esphome::EHMTX_Icon' has no member named 'transparent_'; did you mean 'transparency_'?
this->transparent_=false;
^~~~~~~~~~~~
transparency_ |
Fixed everything: #277 |
Well, i love esphome! It is the coolest way to create "embed solutions" with wlan. I grew up in a world of atmel microcontrollers (oh man, am i old ;-)) So i really love it. But its hard (impossible) for me to maintain ehmtx at a professional level. But @skgsergio found a fix for this bug and i will try to figure out how to make daily builds with the beta esphome, so i can act earlier. Keep esphome growing and i will try to keep ehmtx alive. Thanx Ludger |
Bug report
Describe the bug
ESPHome 2025.2.0b1 fails to compile EspHoMaTriXv2 I due to the introduction of this change: esphome/esphome#7908
I guess the solution is adapting this changes: https://github.com/esphome/esphome/pull/7908/files#diff-4f1cb0c17ef5d328ea36838b7aadaeb4295d06083e8987379b6ce92620dd3204R83-R100
Here: https://github.com/lubeda/EspHoMaTriXv2/blob/2024.12.1/components/ehmtxv2/__init__.py#L503-L519
Log:
Additional information
To Reproduce
Steps to reproduce the behavior:
ESPHome Device Builder (beta)
add-on version2024.12.0b1
The text was updated successfully, but these errors were encountered: