Add version tracing on startup (#311)

* Add version tracing on startup
This commit is contained in:
Tomer 2024-10-26 20:37:13 +03:00 committed by GitHub
parent 9d8c2b061c
commit 3d8cb5f76c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,8 @@ CONFIG_SCHEMA = vol.Schema(
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up the GPIO component."""
version = getattr(hass.data["integrations"][DOMAIN], "version", 0)
_LOGGER.debug(f"{DOMAIN} integration starting. Version: {version}")
path = config.get(DOMAIN, {}).get(CONF_PATH)
hub = Hub(hass, path)
hass.data[DOMAIN] = hub