Troubles with ESPHome in 2024.11.x?

Hello there,

If, like me, esphome is not loading, here is my solution (temp solution, to redo at each upgrade)

WARNING: ADVANCED USERS ONLY!!!

  1. Go to your homeassistant directory (and source your python env if any)
  2. Copy the original file to be sure that you can revert in case of issue
cp -p ./lib/python3.12/site-packages/homeassistant/package_constraints.txt ./lib/python3.12/site-packages/homeassistant/package_constraints.txt.orig
  1. Edit the file ./lib/python3.12/site-packages/homeassistant/package_constraints.txt and replace the protobuf line to 4.25.3 (instead of 5.whatever)
# protobuf must be in package constraints for the wheel
protobuf==4.25.3
  1. force install of the version
pip install -U protobuf==4.25.3
  1. Restart homeassistant and enjoy

Charging?

“Loading”, it is an issue already on the gitlhub, but waiting for the fix, I did something in the meantime. It is since the first 2024.11.0b0 so it took too long for me to wait for the fix.

1 Like

I had this problem on archlinux arm. Installing grpc with system-wide using pacman seemed to fix it (even though I’m running homeassistant in a virtualenv).

That is a great comment indeed.
I installed grpcio in the venv of HA and also as root.

pip install grpcio

One of the 2 fixed the issue, I need to figure out which one now.
Thank you

EDIT: Removing the one installed with root and it is still working with protobuf==5.28.3

I’ll mark your comment as solution but I prefer to install the grpcio package with pip in the venv.