Fix incompatible 'measurement' state and 'volume' device class warnings in Overkiz (#104896)

pull/105135/head
Patrick Decat 2023-12-04 09:45:59 +01:00 committed by Franck Nijhof
parent cda7863a45
commit 380e71d1b2
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
name="Water volume estimation at 40 °C",
icon="mdi:water",
native_unit_of_measurement=UnitOfVolume.LITERS,
device_class=SensorDeviceClass.VOLUME,
device_class=SensorDeviceClass.VOLUME_STORAGE,
entity_registry_enabled_default=False,
state_class=SensorStateClass.MEASUREMENT,
),
@ -110,7 +110,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
icon="mdi:water",
native_unit_of_measurement=UnitOfVolume.LITERS,
device_class=SensorDeviceClass.VOLUME,
state_class=SensorStateClass.MEASUREMENT,
state_class=SensorStateClass.TOTAL_INCREASING,
),
OverkizSensorDescription(
key=OverkizState.IO_OUTLET_ENGINE,