Ill be honest its stuff like this that makes ESPhome super annoying and why im phasing it out… going through a dozen or so devices and updating code… for… because they didnt like how it was structured before? lol
I swear not a couple months ago I had to go in and do something similar with the platform lines…
I always wonder why to break working integrations, with more nitpicking rule changes, making things more complicated then needed, now I have to adapt 50 plus nodes throughout my house, thank you, or not upgrade at all!!! Why always do this? Always needing to dive into the forum to find that there had been a major not needed change! And how to solve it.
This appears to have been done to move esphome beyond just supporting esp MCU based devices.
Change is always hard. Change always happens or the thing dies. The change might not be necessary for your usage. When you depend on code from others you HAVE to pay attention to the changes and the reasons, especially the Breaking Changes notifications.
Speaker
🎉 Happy New Year! 🎉
We’re kicking off 2025 with a number of updates,
several of which are focused on removing old code.
Unfortunately, this means we have a few breaking changes,
but this work helps keep ESPHome more maintainable in the long-run.
Don’t update if things are working and you are not concerned about security.
Do update and get the goodness of the update, but you have to deal with the breaking changes that came in to support some goodness that might or might not be important to you.
Each choice comes with its own set of consequences, decide which set you like better.
Can I have your help please:
I had this message:
Please remove the platform key from the [esphome] block and use the correct platform component. This style of configuration has now been removed.
platform: ESP8266
board: esp01_1m
I’m not sure about what I have to change!
This is my code, Could you kindly tell me what should I change?
The message literally says “remove the ‘platform’ key from the esphome block”. Was that part not clear?
It also appears to say that both the platform: and board: lines need to be removed (which is true, but perhaps less clear, until you read the documentation for platform).
There is a link I posted above to the ESP8266 Platform that shows you what you need to do.
# Example configuration entry
esp8266:
board: nodemcuv2
framework:
version: recommended
The example uses a different board. So, change this:
Hi,
Solved.
First I removed “plataform” but didn’t ident correctly setence.
I got an error.
But right now I finally put thinks in right order and it’s working.
Thanks for your support.