How do i fix /usr/local/lib/python3.13/site-packages/google/__init__.py:2: UserWarning: pkg_resources is deprecated as an API

hi i dunno where the error is in esphome or what its talking about but the system logs shows these errors
maybe someone can tell me what to look for or fix since the information isnt useful for me to figure out

Logger: py.warnings
Source: components/esphome/__init__.py:5
First occurred: 5:00:16 PM (3 occurrences)
Last logged: 5:00:16 PM

/usr/local/lib/python3.13/site-packages/google/__init__.py:2: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. __import__('pkg_resources').declare_namespace(__name__)
/usr/local/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at api.proto. Please update the gencode to avoid compatibility violations in the next runtime release. warnings.warn(
/usr/local/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at api_options.proto. Please update the gencode to avoid compatibility violations in the next runtime release. warnings.warn(

It would be helpful if you could post the version of ESPHome you are using, whether this is on a standalone system or the ESPHome Addon for Home Assistant, and what you are doing that is generating that error. If you’re compiling some YAML to deploy on a device, the YAML would be helpful. Otherwise we’re just guessing.

2025.6.3
didnt know u could run esphome outside of home assistant

and no not compiling i just boot home assistant

and i have 54 esphome devices so i have no idea this error always pops up last few versions of home assistant and i dunno whats depreciated

so u want all 54 yaml files then?

also thats why i saying the error is not very helpful cuz now we guessing on what esp device is causing it or multiple devices wish it gave more info

i did try posting 2 weeks ago on the esphome github but no reply on there so i been stuck trying to figure out what to look for

It looks like it’s just a warning - does it affect anything?

If not then just assume the devs will fix it before the package is depreciated.

I believe it has been noted as an issue, link below. I do not believe it is specific to espHome code, rather a version change issue with the Google protobuf libraries, which are extensively used well beyond Home Assistant.

oh ok so nothing to worry about then as i couldnt figure out which of my devices causing the issue etc