Use device class naming for Switchbot (#96187)

This commit is contained in:
Joost Lekkerkerker 2023-07-16 00:36:13 +02:00 committed by GitHub
parent 30e05ab85e
commit 5d3039f21e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 16 deletions

View file

@ -46,7 +46,6 @@ SENSOR_TYPES: dict[str, SensorEntityDescription] = {
),
"battery": SensorEntityDescription(
key="battery",
translation_key="battery",
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.BATTERY,
state_class=SensorStateClass.MEASUREMENT,
@ -60,7 +59,6 @@ SENSOR_TYPES: dict[str, SensorEntityDescription] = {
),
"humidity": SensorEntityDescription(
key="humidity",
translation_key="humidity",
native_unit_of_measurement=PERCENTAGE,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.HUMIDITY,
@ -74,7 +72,6 @@ SENSOR_TYPES: dict[str, SensorEntityDescription] = {
),
"power": SensorEntityDescription(
key="power",
translation_key="power",
native_unit_of_measurement=UnitOfPower.WATT,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.POWER,