From c9d0e10e8e38615c25dabb16c722800ffa31efad Mon Sep 17 00:00:00 2001 From: David Rapan Date: Wed, 11 Dec 2024 01:37:13 +0100 Subject: [PATCH] refactor: Add CONFIG_SCHEMA constant --- custom_components/solarman/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom_components/solarman/__init__.py b/custom_components/solarman/__init__.py index 3b65c0d..5637a0f 100644 --- a/custom_components/solarman/__init__.py +++ b/custom_components/solarman/__init__.py @@ -7,6 +7,7 @@ from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.config_entries import ConfigEntry +from homeassistant.helpers import config_validation as cv from homeassistant.helpers.typing import ConfigType from homeassistant.helpers.entity_registry import async_migrate_entries @@ -22,6 +23,8 @@ PLATFORMS: list[Platform] = [Platform.SENSOR, Platform.BINARY_SENSOR, Platform.SWITCH, Platform.NUMBER, Platform.SELECT, Platform.DATETIME, Platform.TIME, Platform.BUTTON] +CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN) + async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: _LOGGER.debug(f"async_setup")