Skip to content

Commit

Permalink
refactor: Add CONFIG_SCHEMA constant
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrapan committed Dec 11, 2024
1 parent f9fa289 commit c9d0e10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/solarman/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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")

Expand Down

0 comments on commit c9d0e10

Please sign in to comment.