Skip to content

Commit

Permalink
Add version tracing at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
tomer-w committed Oct 26, 2024
1 parent fe224f1 commit 5ea3f61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/rpi_gpio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

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
Expand Down

0 comments on commit 5ea3f61

Please sign in to comment.