From 0168db75380b8a8a43483eb5768aefa21bab7b7a Mon Sep 17 00:00:00 2001 From: Will Adler Date: Sat, 26 Oct 2024 21:47:36 -0400 Subject: [PATCH] add CONFIG_SCHEMA --- custom_components/leafspy/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/custom_components/leafspy/__init__.py b/custom_components/leafspy/__init__.py index 4a8dc3a..d60eb2e 100755 --- a/custom_components/leafspy/__init__.py +++ b/custom_components/leafspy/__init__.py @@ -9,8 +9,11 @@ from homeassistant.components.http.view import HomeAssistantView from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry from homeassistant.core import callback, HomeAssistant +from homeassistant.helpers import config_validation as cv from homeassistant.helpers.dispatcher import async_dispatcher_connect, async_dispatcher_send + + from .config_flow import CONF_SECRET, DOMAIN, URL_LEAFSPY_PATH from .device_tracker import async_handle_message @@ -18,6 +21,8 @@ PLATFORMS = ["device_tracker"] +# Use empty_config_schema because the component does not have any config options +CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN) async def async_setup(hass, config): """Initialize Leaf Spy component."""