My ESPHome Logging doesn’t work anymore. The ESP32’s still deliver their readings and I can send new code to it OTA, but when I choose Log to see the details, I get the following:
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 481, in command_logs
return show_logs(config, args, port)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/esphome/esphome/__main__.py", line 383, in show_logs
from esphome.components.api.client import run_logs
File "/esphome/esphome/components/api/client.py", line 8, in <module>
from aioesphomeapi import APIClient
File "/usr/local/lib/python3.11/dist-packages/aioesphomeapi/__init__.py", line 2, in <module>
from .api_pb2 import ( # type: ignore[attr-defined] # noqa: F401
File "/usr/local/lib/python3.11/dist-packages/aioesphomeapi/api_pb2.py", line 17, in <module>
from . import api_options_pb2 as api__options__pb2
File "/usr/local/lib/python3.11/dist-packages/aioesphomeapi/api_options_pb2.py", line 52, in <module>
google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(needs_setup_connection)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'MethodOptions' has no attribute 'RegisterExtension'
And then it stops…
I noticed this behavior a few weeks back and don’t know exactly when it broke. It shows the same text for all 10+ ESPHome devices, while there is a wide variety of sensors across them.
I de-installed ESPHome and re-installed it (in an effort to replace all local files that it might be complaining about), but it didn’t solve it.
I’ve tried to find the files it refers to using the CLI, but I can’t find this location.
There’s Gigabytes of memore left on the SD Card. I run HASSIO on a RaspberryPi and I run the latest and greatest HASSIO, ESPHome, etc.
Thanks for your help!!