From 1176003b51bb5cad2ba78bd67ce0259000f824da Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 23 Oct 2023 10:07:31 +0200 Subject: [PATCH] Move Ecowitt battery sensor into diagnostic category (#102569) --- homeassistant/components/ecowitt/sensor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/ecowitt/sensor.py b/homeassistant/components/ecowitt/sensor.py index 8d5411e9e2e..6d048cc423d 100644 --- a/homeassistant/components/ecowitt/sensor.py +++ b/homeassistant/components/ecowitt/sensor.py @@ -21,6 +21,7 @@ from homeassistant.const import ( LIGHT_LUX, PERCENTAGE, UV_INDEX, + EntityCategory, UnitOfElectricPotential, UnitOfIrradiance, UnitOfLength, @@ -94,12 +95,14 @@ ECOWITT_SENSORS_MAPPING: Final = { device_class=SensorDeviceClass.BATTERY, native_unit_of_measurement=PERCENTAGE, state_class=SensorStateClass.MEASUREMENT, + entity_category=EntityCategory.DIAGNOSTIC, ), EcoWittSensorTypes.BATTERY_VOLTAGE: SensorEntityDescription( key="BATTERY_VOLTAGE", device_class=SensorDeviceClass.VOLTAGE, native_unit_of_measurement=UnitOfElectricPotential.VOLT, state_class=SensorStateClass.MEASUREMENT, + entity_category=EntityCategory.DIAGNOSTIC, ), EcoWittSensorTypes.CO2_PPM: SensorEntityDescription( key="CO2_PPM",