Skip to content

Commit

Permalink
add CONFIG_SCHEMA to address hassfest warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattat01 committed Oct 27, 2024
1 parent 17717f2 commit c599043
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/ha-insnrg-chlorinator/__init__.py
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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:
Expand Down

0 comments on commit c599043

Please sign in to comment.