Closed RobertD502 closed 4 months ago
You're pulling in a newer version of the component that has changes that use new constants, but you don't have the core changes that include those constants. (Not possible with external components.) So you can't do this. Why are you even trying to do this?
You're pulling in a newer version of the component that has changes that use new constants, but you don't have the core changes that include those constants. (Not possible with external components.) So you can't do this. Why are you even trying to do this?
As mentioned above, unless I define those components as external components, the build fails with an error stating that the datetime
, homeassistant
, and time
components are missing - based on my findings at the time, since I am defining the framework as esp-idf
, I have to define those components as external components. Otherwise, ESPHome complains that the components are missing. Unless I am misunderstanding, how else am I supposed to utilize the datetime, homeassistant, and time components with the framework set to esp-idf?
Edit:
I commented out the external components and then cleaned out the build files. Looks like the missing components error in the past was due to the build files that already existed. The code changes that I made that required the datetime
, homeassistant
, and time
components came after I had already compiled firmware for the device. Since the original build didn't have these components, trying to push new code OTA that now required these components resulted in the missing components error. So, it boiled down to needing to clean the build files and, once that was done, I didn't have a need to define them as external components.
If you use esp-idf, you often have to do a clean build if you add or remove components from the config.
The problem
After updating to ESPHome
2024.5.5
and attempting to update one of my devices, it is failing as theconst.py
file is missing theCONF_WEB_SERVER_ID
variable.The following error message is encountered:
I entered into the container and, sure enough, the
CONF_WEB_SERVER_ID
is missing from theconst.py
file. To ensure that it wasn't some weird bug that occurred during my update of the add-on, I also looked at the2024.5.5
release's source code and can see that theCONF_WEB_SERVER_ID
variable is missing.Note:
I am using the
esp-idf
framework, so I am having to pull in the some of the esphome components manually.Since I am pulling in, for example, the
datetime
component manually, its init file is importing theCONF_WEB_SERVER_ID
variable, but the PR that includes this change & theconst.py
change (#6445) was not part of the2024.5.5
release (https://github.com/esphome/esphome/compare/2024.5.4...2024.5.5).Just to be sure, since I am using the esp-idf framework I have to pull in those components (that are part of esphome) as external components, correct? Prior to defining them as external components (for example, in the
2024.5.4
version of ESPHome), my builds failed for this device with an error stating that those components are missing.Which version of ESPHome has the issue?
2024.5.5
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2024.6.2
What platform are you using?
ESP32-IDF
Board
esp32-c3-devkitm-1
Component causing the issue
datetime
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response