Move sunweg sensor definitions (#125754)

This commit is contained in:
epenet 2024-09-12 08:05:40 +02:00 committed by GitHub
parent 21d3f15059
commit b1a777a95a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 8 additions and 10 deletions

View File

@ -17,13 +17,13 @@ from homeassistant.core import HomeAssistant
from homeassistant.helpers.device_registry import DeviceInfo
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from . import SunWEGData
from .const import CONF_PLANT_ID, DEFAULT_PLANT_ID, DOMAIN, DeviceType
from .sensor_types.inverter import INVERTER_SENSOR_TYPES
from .sensor_types.phase import PHASE_SENSOR_TYPES
from .sensor_types.sensor_entity_description import SunWEGSensorEntityDescription
from .sensor_types.string import STRING_SENSOR_TYPES
from .sensor_types.total import TOTAL_SENSOR_TYPES
from .. import SunWEGData
from ..const import CONF_PLANT_ID, DEFAULT_PLANT_ID, DOMAIN, DeviceType
from .inverter import INVERTER_SENSOR_TYPES
from .phase import PHASE_SENSOR_TYPES
from .sensor_entity_description import SunWEGSensorEntityDescription
from .string import STRING_SENSOR_TYPES
from .total import TOTAL_SENSOR_TYPES
_LOGGER = logging.getLogger(__name__)

View File

@ -15,7 +15,6 @@ class SunWEGRequiredKeysMixin:
@dataclass(frozen=True)
# pylint: disable-next=hass-enforce-class-module
class SunWEGSensorEntityDescription(SensorEntityDescription, SunWEGRequiredKeysMixin):
"""Describes SunWEG sensor entity."""

View File

@ -1 +0,0 @@
"""Sensor types for supported Sun WEG systems."""

View File

@ -7,7 +7,7 @@ from sunweg.api import APIHelper, SunWegApiError
from homeassistant.components.sunweg import SunWEGData
from homeassistant.components.sunweg.const import DOMAIN, DeviceType
from homeassistant.components.sunweg.sensor_types.sensor_entity_description import (
from homeassistant.components.sunweg.sensor.sensor_entity_description import (
SunWEGSensorEntityDescription,
)
from homeassistant.config_entries import ConfigEntryState