From 7c8f6e9fad23307e35f5aa573f4b4f5042add493 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Mon, 23 Jan 2023 16:24:02 +0100 Subject: [PATCH] Drop unused dtype (#86459) --- homeassistant/components/zamg/sensor.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/homeassistant/components/zamg/sensor.py b/homeassistant/components/zamg/sensor.py index 1c49c4d80d3..348052bc5f4 100644 --- a/homeassistant/components/zamg/sensor.py +++ b/homeassistant/components/zamg/sensor.py @@ -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, ), )