diff --git a/custom_components/ha-insnrg-chlorinator/__init__.py b/custom_components/ha-insnrg-chlorinator/__init__.py index 4bfa5dc..b3f1648 100644 --- a/custom_components/ha-insnrg-chlorinator/__init__.py +++ b/custom_components/ha-insnrg-chlorinator/__init__.py @@ -1,6 +1,7 @@ import logging from homeassistant.config_entries import ConfigEntry from homeassistant.helpers.typing import ConfigType +from homeassistant.helpers import config_validation as cv from homeassistant.core import ( HomeAssistant, ServiceCall, @@ -11,7 +12,8 @@ from .const import DOMAIN, API_URL from .coordinator import InsnrgChlorinatorCoordinator # Import the new coordinator -PLATFORMS = [Platform.SENSOR] # would need to update if including binary sensor platform +CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN) +PLATFORMS = [Platform.SENSOR] _LOGGER = logging.getLogger(__name__) async def async_setup(hass: HomeAssistant, config: ConfigType | None) -> bool: