Move growatt_server sensor definitions (#125755)

This commit is contained in:
epenet 2024-09-12 07:58:05 +02:00 committed by GitHub
parent 9651072103
commit 21d3f15059
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 7 additions and 9 deletions

View file

@ -17,7 +17,7 @@ from homeassistant.helpers.device_registry import DeviceInfo
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.util import Throttle, dt as dt_util
from .const import (
from ..const import (
CONF_PLANT_ID,
DEFAULT_PLANT_ID,
DEFAULT_URL,
@ -25,12 +25,12 @@ from .const import (
DOMAIN,
LOGIN_INVALID_AUTH_CODE,
)
from .sensor_types.inverter import INVERTER_SENSOR_TYPES
from .sensor_types.mix import MIX_SENSOR_TYPES
from .sensor_types.sensor_entity_description import GrowattSensorEntityDescription
from .sensor_types.storage import STORAGE_SENSOR_TYPES
from .sensor_types.tlx import TLX_SENSOR_TYPES
from .sensor_types.total import TOTAL_SENSOR_TYPES
from .inverter import INVERTER_SENSOR_TYPES
from .mix import MIX_SENSOR_TYPES
from .sensor_entity_description import GrowattSensorEntityDescription
from .storage import STORAGE_SENSOR_TYPES
from .tlx import TLX_SENSOR_TYPES
from .total import TOTAL_SENSOR_TYPES
_LOGGER = logging.getLogger(__name__)

View file

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

View file

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