You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: missing imports error on HA 2026.5.0 (#224)
* Fix import error on HA 2026.5.0 (hassio constants moved to const submodule)
HA 2026.5.0 removed ATTR_FOLDERS, ATTR_ADDONS, ATTR_PASSWORD, and
ATTR_HOMEASSISTANT_EXCLUDE_DATABASE from homeassistant.components.hassio.
These constants still exist in homeassistant.components.hassio.const.
Change the import source in __init__.py, manager.py, and handlers.py
from homeassistant.components.hassio to homeassistant.components.hassio.const.
Fixes#221, #222, #223
* Add backwards-compatible import fallback for HA < 2026.5
Use try/except to import hassio constants from the new location
(hassio.const) with a fallback to hassio.__init__ for older HA versions.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>