mirror of
https://github.com/thecode/ha-rpi_gpio.git
synced 2025-07-26 04:06:38 +00:00
parent
9d8c2b061c
commit
3d8cb5f76c
@ -25,6 +25,8 @@ CONFIG_SCHEMA = vol.Schema(
|
|||||||
|
|
||||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||||
"""Set up the GPIO component."""
|
"""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)
|
path = config.get(DOMAIN, {}).get(CONF_PATH)
|
||||||
hub = Hub(hass, path)
|
hub = Hub(hass, path)
|
||||||
hass.data[DOMAIN] = hub
|
hass.data[DOMAIN] = hub
|
||||||
|
Loading…
x
Reference in New Issue
Block a user