mirror of
https://github.com/thecode/ha-rpi_gpio.git
synced 2025-04-19 12:27:17 +00:00
parent
9d8c2b061c
commit
3d8cb5f76c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user