mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Move growatt_server sensor definitions (#125755)
This commit is contained in:
parent
9651072103
commit
21d3f15059
@ -17,7 +17,7 @@ from homeassistant.helpers.device_registry import DeviceInfo
|
|||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
from homeassistant.util import Throttle, dt as dt_util
|
from homeassistant.util import Throttle, dt as dt_util
|
||||||
|
|
||||||
from .const import (
|
from ..const import (
|
||||||
CONF_PLANT_ID,
|
CONF_PLANT_ID,
|
||||||
DEFAULT_PLANT_ID,
|
DEFAULT_PLANT_ID,
|
||||||
DEFAULT_URL,
|
DEFAULT_URL,
|
||||||
@ -25,12 +25,12 @@ from .const import (
|
|||||||
DOMAIN,
|
DOMAIN,
|
||||||
LOGIN_INVALID_AUTH_CODE,
|
LOGIN_INVALID_AUTH_CODE,
|
||||||
)
|
)
|
||||||
from .sensor_types.inverter import INVERTER_SENSOR_TYPES
|
from .inverter import INVERTER_SENSOR_TYPES
|
||||||
from .sensor_types.mix import MIX_SENSOR_TYPES
|
from .mix import MIX_SENSOR_TYPES
|
||||||
from .sensor_types.sensor_entity_description import GrowattSensorEntityDescription
|
from .sensor_entity_description import GrowattSensorEntityDescription
|
||||||
from .sensor_types.storage import STORAGE_SENSOR_TYPES
|
from .storage import STORAGE_SENSOR_TYPES
|
||||||
from .sensor_types.tlx import TLX_SENSOR_TYPES
|
from .tlx import TLX_SENSOR_TYPES
|
||||||
from .sensor_types.total import TOTAL_SENSOR_TYPES
|
from .total import TOTAL_SENSOR_TYPES
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
@ -15,7 +15,6 @@ class GrowattRequiredKeysMixin:
|
|||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True)
|
||||||
# pylint: disable-next=hass-enforce-class-module
|
|
||||||
class GrowattSensorEntityDescription(SensorEntityDescription, GrowattRequiredKeysMixin):
|
class GrowattSensorEntityDescription(SensorEntityDescription, GrowattRequiredKeysMixin):
|
||||||
"""Describes Growatt sensor entity."""
|
"""Describes Growatt sensor entity."""
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
"""Sensor types for supported Growatt systems."""
|
|
Loading…
x
Reference in New Issue
Block a user