Use new UnitOfEnergy constants in Overkiz (#133778)

This commit is contained in:
Mick Vleeshouwer 2024-12-22 10:36:07 +01:00 committed by GitHub
parent 3f1acff652
commit 619aed39b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,8 +142,8 @@ OVERKIZ_UNIT_TO_HA: dict[str, str] = {
MeasuredValueType.ELECTRICAL_POWER_IN_W: UnitOfPower.WATT,
MeasuredValueType.ELECTRIC_CURRENT_IN_AMPERE: UnitOfElectricCurrent.AMPERE,
MeasuredValueType.ELECTRIC_CURRENT_IN_MILLI_AMPERE: UnitOfElectricCurrent.MILLIAMPERE,
MeasuredValueType.ENERGY_IN_CAL: "cal",
MeasuredValueType.ENERGY_IN_KCAL: "kcal",
MeasuredValueType.ENERGY_IN_CAL: UnitOfEnergy.CALORIE,
MeasuredValueType.ENERGY_IN_KCAL: UnitOfEnergy.KILO_CALORIE,
MeasuredValueType.FLOW_IN_LITRE_PER_SECOND: f"{UnitOfVolume.LITERS}/{UnitOfTime.SECONDS}",
MeasuredValueType.FLOW_IN_METER_CUBE_PER_HOUR: UnitOfVolumeFlowRate.CUBIC_METERS_PER_HOUR,
MeasuredValueType.FLOW_IN_METER_CUBE_PER_SECOND: f"{UnitOfVolume.CUBIC_METERS}/{UnitOfTime.SECONDS}",