Move Ecowitt battery sensor into diagnostic category (#102569)
This commit is contained in:
parent
a2bc2bf8a0
commit
1176003b51
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,7 @@ from homeassistant.const import (
|
||||||
LIGHT_LUX,
|
LIGHT_LUX,
|
||||||
PERCENTAGE,
|
PERCENTAGE,
|
||||||
UV_INDEX,
|
UV_INDEX,
|
||||||
|
EntityCategory,
|
||||||
UnitOfElectricPotential,
|
UnitOfElectricPotential,
|
||||||
UnitOfIrradiance,
|
UnitOfIrradiance,
|
||||||
UnitOfLength,
|
UnitOfLength,
|
||||||
|
@ -94,12 +95,14 @@ ECOWITT_SENSORS_MAPPING: Final = {
|
||||||
device_class=SensorDeviceClass.BATTERY,
|
device_class=SensorDeviceClass.BATTERY,
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
EcoWittSensorTypes.BATTERY_VOLTAGE: SensorEntityDescription(
|
EcoWittSensorTypes.BATTERY_VOLTAGE: SensorEntityDescription(
|
||||||
key="BATTERY_VOLTAGE",
|
key="BATTERY_VOLTAGE",
|
||||||
device_class=SensorDeviceClass.VOLTAGE,
|
device_class=SensorDeviceClass.VOLTAGE,
|
||||||
native_unit_of_measurement=UnitOfElectricPotential.VOLT,
|
native_unit_of_measurement=UnitOfElectricPotential.VOLT,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
EcoWittSensorTypes.CO2_PPM: SensorEntityDescription(
|
EcoWittSensorTypes.CO2_PPM: SensorEntityDescription(
|
||||||
key="CO2_PPM",
|
key="CO2_PPM",
|
||||||
|
|
Loading…
Add table
Reference in a new issue