diff --git a/custom_components/google_maps/__init__.py b/custom_components/google_maps/__init__.py index ed5b72d..7a2d402 100644 --- a/custom_components/google_maps/__init__.py +++ b/custom_components/google_maps/__init__.py @@ -9,7 +9,11 @@ from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_USERNAME, EVENT_HOMEASSISTANT_STOP, Platform from homeassistant.core import Event, HomeAssistant -from homeassistant.helpers import device_registry as dr, entity_registry as er +from homeassistant.helpers import ( + config_validation as cv, + device_registry as dr, + entity_registry as er, +) from homeassistant.helpers.typing import ConfigType from .const import CONF_COOKIES_FILE, CONF_CREATE_ACCT_ENTITY, DOMAIN, NAME_PREFIX @@ -19,6 +23,8 @@ _LOGGER = logging.getLogger(__name__) _PLATFORMS = [Platform.BINARY_SENSOR, Platform.DEVICE_TRACKER] +CONFIG_SCHEMA = cv.platform_only_config_schema(DOMAIN) + async def async_setup(hass: HomeAssistant, _: ConfigType) -> bool: """Set up integration."""