diff --git a/custom_components/holidays/__init__.py b/custom_components/holidays/__init__.py index 2064c33..d593dba 100644 --- a/custom_components/holidays/__init__.py +++ b/custom_components/holidays/__init__.py @@ -9,8 +9,10 @@ import holidays # pylint: disable=import-self from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant -from homeassistant.helpers.config_validation import (PLATFORM_SCHEMA, - PLATFORM_SCHEMA_BASE) +from homeassistant.helpers.config_validation import ( + PLATFORM_SCHEMA, + PLATFORM_SCHEMA_BASE, +) from homeassistant.helpers.typing import ConfigType from . import const @@ -19,6 +21,7 @@ _LOGGER = logging.getLogger(__name__) + async def async_setup(hass: HomeAssistant, _: ConfigType) -> bool: """Set up the platform - inicialize data structure.""" hass.data.setdefault(const.DOMAIN, {})