Drop unused dtype (#86459)
This commit is contained in:
parent
8672be3829
commit
7c8f6e9fad
1 changed files with 0 additions and 18 deletions
|
@ -3,7 +3,6 @@ from __future__ import annotations
|
|||
|
||||
from collections.abc import Mapping
|
||||
from dataclasses import dataclass
|
||||
from typing import TypeAlias
|
||||
|
||||
from homeassistant.components.sensor import (
|
||||
SensorDeviceClass,
|
||||
|
@ -38,15 +37,12 @@ from .const import (
|
|||
)
|
||||
from .coordinator import ZamgDataUpdateCoordinator
|
||||
|
||||
_DType: TypeAlias = "type[int] | type[float] | type[str]"
|
||||
|
||||
|
||||
@dataclass
|
||||
class ZamgRequiredKeysMixin:
|
||||
"""Mixin for required keys."""
|
||||
|
||||
para_name: str
|
||||
dtype: _DType
|
||||
|
||||
|
||||
@dataclass
|
||||
|
@ -62,7 +58,6 @@ SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
|||
device_class=SensorDeviceClass.PRESSURE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
para_name="P",
|
||||
dtype=float,
|
||||
),
|
||||
ZamgSensorEntityDescription(
|
||||
key="pressure_sealevel",
|
||||
|
@ -71,7 +66,6 @@ SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
|||
device_class=SensorDeviceClass.PRESSURE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
para_name="PRED",
|
||||
dtype=float,
|
||||
),
|
||||
ZamgSensorEntityDescription(
|
||||
key="humidity",
|
||||
|
@ -80,7 +74,6 @@ SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
|||
device_class=SensorDeviceClass.HUMIDITY,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
para_name="RFAM",
|
||||
dtype=int,
|
||||
),
|
||||
ZamgSensorEntityDescription(
|
||||
key="wind_speed",
|
||||
|
@ -89,7 +82,6 @@ SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
|||
device_class=SensorDeviceClass.WIND_SPEED,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
para_name="FFAM",
|
||||
dtype=float,
|
||||
),
|
||||
ZamgSensorEntityDescription(
|
||||
key="wind_bearing",
|
||||
|
@ -97,7 +89,6 @@ SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
|||
native_unit_of_measurement=DEGREE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
para_name="DD",
|
||||
dtype=int,
|
||||
),
|
||||
ZamgSensorEntityDescription(
|
||||
key="wind_max_speed",
|
||||
|
@ -106,7 +97,6 @@ SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
|||
device_class=SensorDeviceClass.WIND_SPEED,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
para_name="FFX",
|
||||
dtype=float,
|
||||
),
|
||||
ZamgSensorEntityDescription(
|
||||
key="wind_max_bearing",
|
||||
|
@ -114,7 +104,6 @@ SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
|||
native_unit_of_measurement=DEGREE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
para_name="DDX",
|
||||
dtype=int,
|
||||
),
|
||||
ZamgSensorEntityDescription(
|
||||
key="sun_last_10min",
|
||||
|
@ -122,7 +111,6 @@ SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
|||
native_unit_of_measurement=UnitOfTime.SECONDS,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
para_name="SO",
|
||||
dtype=int,
|
||||
),
|
||||
ZamgSensorEntityDescription(
|
||||
key="temperature",
|
||||
|
@ -131,7 +119,6 @@ SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
|||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
para_name="TL",
|
||||
dtype=float,
|
||||
),
|
||||
ZamgSensorEntityDescription(
|
||||
key="temperature_average",
|
||||
|
@ -140,7 +127,6 @@ SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
|||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
para_name="TLAM",
|
||||
dtype=float,
|
||||
),
|
||||
ZamgSensorEntityDescription(
|
||||
key="precipitation",
|
||||
|
@ -149,7 +135,6 @@ SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
|||
device_class=SensorDeviceClass.PRECIPITATION,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
para_name="RR",
|
||||
dtype=float,
|
||||
),
|
||||
ZamgSensorEntityDescription(
|
||||
key="snow",
|
||||
|
@ -158,7 +143,6 @@ SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
|||
device_class=SensorDeviceClass.PRECIPITATION,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
para_name="SCHNEE",
|
||||
dtype=float,
|
||||
),
|
||||
ZamgSensorEntityDescription(
|
||||
key="dewpoint",
|
||||
|
@ -167,7 +151,6 @@ SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
|||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
para_name="TP",
|
||||
dtype=float,
|
||||
),
|
||||
ZamgSensorEntityDescription(
|
||||
key="dewpoint_average",
|
||||
|
@ -176,7 +159,6 @@ SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
|||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
para_name="TPAM",
|
||||
dtype=float,
|
||||
),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue