diff --git a/custom_components/spotify_search/__init__.py b/custom_components/spotify_search/__init__.py index aaac1e8..bcc3f23 100644 --- a/custom_components/spotify_search/__init__.py +++ b/custom_components/spotify_search/__init__.py @@ -1,7 +1,9 @@ """Spotify Search Integration for Home Assistant.""" import logging import re +import voluptuous as vol from homeassistant.core import HomeAssistant, ServiceCall +import homeassistant.helpers.config_validation as cv from homeassistant.helpers.typing import ConfigType _LOGGER = logging.getLogger(__name__) @@ -9,6 +11,8 @@ _LOGGER = logging.getLogger(__name__) DOMAIN = "spotify_search" VALID_SEARCH_TYPES = {"artist", "album", "track", "playlist"} +CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN) + # Cache Spotify client to avoid repeated lookups _spotify_cache = { "client": None,