From 9f26347fdc6beaa6657944cdf3cbbd77a1d584b2 Mon Sep 17 00:00:00 2001 From: Whitney Young Date: Mon, 16 Sep 2024 11:16:30 -0700 Subject: [PATCH] Add missing CONFIG_SCHEMA --- custom_components/watersmart/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/watersmart/__init__.py b/custom_components/watersmart/__init__.py index 8b95502..77e0cd1 100644 --- a/custom_components/watersmart/__init__.py +++ b/custom_components/watersmart/__init__.py @@ -5,6 +5,7 @@ from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.aiohttp_client import async_get_clientsession +from homeassistant.helpers import config_validation as cv from homeassistant.helpers.typing import ConfigType from .client import WaterSmartClient @@ -14,6 +15,7 @@ from .types import WaterSmartConfigEntry, WaterSmartData PLATFORMS: list[Platform] = [Platform.SENSOR] +CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN) async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: