Fix Hassfest validation by adding CONFIG_SCHEMA
Add empty config schema to satisfy Hassfest requirement. Integration has no configuration parameters but requires the schema definition.
This commit is contained in:
1 parent
858ddd336e
commit
b49fa1a54b
1 file changed
+4
@@ -1,7 +1,9 @@
|
|||||||
"""Spotify Search Integration for Home Assistant."""
|
"""Spotify Search Integration for Home Assistant."""
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
import voluptuous as vol
|
||||||
from homeassistant.core import HomeAssistant, ServiceCall
|
from homeassistant.core import HomeAssistant, ServiceCall
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
@@ -9,6 +11,8 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
DOMAIN = "spotify_search"
|
DOMAIN = "spotify_search"
|
||||||
VALID_SEARCH_TYPES = {"artist", "album", "track", "playlist"}
|
VALID_SEARCH_TYPES = {"artist", "album", "track", "playlist"}
|
||||||
|
|
||||||
|
CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
|
||||||
|
|
||||||
# Cache Spotify client to avoid repeated lookups
|
# Cache Spotify client to avoid repeated lookups
|
||||||
_spotify_cache = {
|
_spotify_cache = {
|
||||||
"client": None,
|
"client": None,
|
||||||
|
|||||||
Reference in new issue
Block a user