hacs-govee: Integration fails after HA update
Version of the custom_component
2025.1.1
Configuration
Nothing in general HA config other than govee-learning.yaml file
68:53:<obfuscated>:
set_brightness_max: 100
get_brightness_max: 100
before_set_brightness_turn_on: false
config_offline_is_off: false
5D:02:<obfuscated>:
set_brightness_max: 100
get_brightness_max: 100
before_set_brightness_turn_on: false
config_offline_is_off: false
Describe the bug
Everything was working fine prior-to doing an HA update. Was previously at HA 2025.3.3 and did an update to 2025.3.4 and suddenly started getting Govee integration startup errors (see stack dump below). HA-OS is the same as it was previously, as is the config of my 2 Govee devices.
I tried re-downloading the Govee integration from HACS, but it didn’t help.
Debug log
General log (integration isn’t even loading to produce explicit debug messages):
2025-03-24 10:32:32.805 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package govee-api-laggat==0.2.2: × Failed to build `bios==0.1.2`
├─▶ The build backend returned an error
╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit
status: 1)
[stderr]
Traceback (most recent call last):
File "<string>", line 14, in <module>
requires = get_requires_for_build({})
File
"/tmp/.tmpGhOQ6w/builds-v0/.tmparlm49/lib/python3.13/site-packages/setuptools/build_meta.py",
line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/tmp/.tmpGhOQ6w/builds-v0/.tmparlm49/lib/python3.13/site-packages/setuptools/build_meta.py",
line 304, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File
"/tmp/.tmpGhOQ6w/builds-v0/.tmparlm49/lib/python3.13/site-packages/setuptools/build_meta.py",
line 522, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/tmp/.tmpGhOQ6w/builds-v0/.tmparlm49/lib/python3.13/site-packages/setuptools/build_meta.py",
line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 8, in <module>
from setuptools.build_meta import __legacy__ as backend
...<26 lines>...
File
"/tmp/.tmpGhOQ6w/builds-v0/.tmparlm49/lib/python3.13/site-packages/setuptools/__init__.py",
line 116, in setup
_install_setup_requires(attrs)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File
"/tmp/.tmpGhOQ6w/builds-v0/.tmparlm49/lib/python3.13/site-packages/setuptools/__init__.py",
line 87, in _install_setup_requires
dist.parse_config_files(ignore_option_errors=True)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/tmp/.tmpGhOQ6w/builds-v0/.tmparlm49/lib/python3.13/site-packages/_virtualenv.py",
line 20, in parse_config_files
result = old_parse_config_files(self, *args, **kwargs)
File
"/tmp/.tmpGhOQ6w/builds-v0/.tmparlm49/lib/python3.13/site-packages/setuptools/dist.py",
line 730, in parse_config_files
self._parse_config_files(filenames=inifiles)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File
"/tmp/.tmpGhOQ6w/builds-v0/.tmparlm49/lib/python3.13/site-packages/setuptools/dist.py",
line 599, in _parse_config_files
opt = self._enforce_underscore(opt, section)
File
"/tmp/.tmpGhOQ6w/builds-v0/.tmparlm49/lib/python3.13/site-packages/setuptools/dist.py",
line 629, in _enforce_underscore
raise InvalidConfigError(
...<3 lines>...
)
setuptools.errors.InvalidConfigError: Invalid dash-separated key
'description-file' in 'metadata' (setup.cfg), please use the underscore
name 'description_file' instead.
hint: This usually indicates a problem with the package or the build
environment.
help: `bios` (v0.1.2) was included because `govee-api-laggat` (v0.2.2)
depends on `bios>=0.1.2`
2025-03-24 10:32:32.805 INFO (SyncWorker_1) [homeassistant.util.package] Attempting inst
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 4
- Comments: 16
Correct, but my hope is the root cause is actually fixed before that happens, LOL.
I got it fixed with the help of ChatGPT, lol! I made it give me an overview.
Issue Summary:
While attempting to install the govee-api-laggat==0.2.2 integration in Home Assistant, the install process failed due to a dependency on the bios==0.1.2 Python package. The bios package had a malformed setup.cfg file that used the deprecated description-file field instead of the correct description_file, which caused the build to fail during installation.
Root Cause:
The bios package was not maintained properly and contained an invalid key in its setup.cfg metadata file. Python’s setuptools (especially on newer versions like Python 3.12/3.13) strictly enforces correct configuration, leading to the build failure.
Resolution Steps:
Downloaded the source package manually from PyPI since no public GitHub repo existed:
wget https://files.pythonhosted.org/packages/source/b/bios/bios-0.1.2.tar.gzExtracted the source:
Patched the config file to fix the invalid metadata:
sed -i 's/description-file/description_file/' setup.cfgInstalled the patched version locally:
pip install .This allowed the bios package to install correctly, resolving the dependency error and allowing the Govee integration to be successfully added to Home Assistant.
Note: Running pip as root can be risky; ideally, this should be done in a virtual environment.