Use UnitOfVolumeFlowRate in huisbaasje and plugwise (#88967)

This commit is contained in:
epenet 2023-03-01 15:26:39 +01:00 committed by GitHub
parent 0c66346fb0
commit 23cdafd12f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 11 deletions

View file

@ -17,8 +17,8 @@ from homeassistant.const import (
UnitOfPower,
UnitOfPressure,
UnitOfTemperature,
UnitOfTime,
UnitOfVolume,
UnitOfVolumeFlowRate,
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
@ -305,7 +305,7 @@ SENSORS: tuple[SensorEntityDescription, ...] = (
key="gas_consumed_interval",
name="Gas consumed interval",
icon="mdi:meter-gas",
native_unit_of_measurement=f"{UnitOfVolume.CUBIC_METERS}/{UnitOfTime.HOURS}",
native_unit_of_measurement=UnitOfVolumeFlowRate.CUBIC_METERS_PER_HOUR,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(