Move growatt_server sensor definitions (#125755)
This commit is contained in:
parent
9651072103
commit
21d3f15059
8 changed files with 7 additions and 9 deletions
|
@ -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__)
|
||||
|
|
@ -15,7 +15,6 @@ class GrowattRequiredKeysMixin:
|
|||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
# pylint: disable-next=hass-enforce-class-module
|
||||
class GrowattSensorEntityDescription(SensorEntityDescription, GrowattRequiredKeysMixin):
|
||||
"""Describes Growatt sensor entity."""
|
||||
|
|
@ -1 +0,0 @@
|
|||
"""Sensor types for supported Growatt systems."""
|
Loading…
Add table
Reference in a new issue