Skip to content

Commit

Permalink
Add version tracing on startup (#311)
Browse files Browse the repository at this point in the history
* Add version tracing on startup
  • Loading branch information
tomer-w authored Oct 26, 2024
1 parent 9d8c2b0 commit 3d8cb5f
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 3d8cb5f

Please # to comment.