Skip to content

Commit

Permalink
šŸ› Correct celcius unit
Browse files Browse the repository at this point in the history
This will solve the
> sensor.panasonic_heat_pump_main_dhw_temp has unit CĀ° which is unsupported for device_class temperature
warning in logs. And allow to have long term statistics

Change-Id: If3a4c6a12f49f089a9dca9278383edb529149f6f
  • Loading branch information
kamaradclimber committed Oct 17, 2022
1 parent ecf6ffc commit 3b6b4a2
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions custom_components/heishamon/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,19 +219,19 @@ def update_device_model(
key="panasonic_heat_pump/main/Main_Inlet_Temp",
name="Aquarea Inlet Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="CĀ°",
native_unit_of_measurement="Ā°C",
),
HeishaMonSensorEntityDescription(
key="panasonic_heat_pump/main/Main_Outlet_Temp",
name="Aquarea Outlet Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="CĀ°",
native_unit_of_measurement="Ā°C",
),
HeishaMonSensorEntityDescription(
key="panasonic_heat_pump/main/Main_Target_Temp",
name="Aquarea Outlet Target Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="CĀ°",
native_unit_of_measurement="Ā°C",
),
HeishaMonSensorEntityDescription(
key="panasonic_heat_pump/main/Compressor_Freq",
Expand All @@ -244,13 +244,13 @@ def update_device_model(
key="panasonic_heat_pump/main/DHW_Target_Temp",
name="Aquarea Tank Set Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="CĀ°",
native_unit_of_measurement="Ā°C",
),
HeishaMonSensorEntityDescription(
key="panasonic_heat_pump/main/DHW_Temp",
name="Aquarea Tank Actual Tank Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="CĀ°",
native_unit_of_measurement="Ā°C",
state_class=SensorStateClass.MEASUREMENT,
),
HeishaMonSensorEntityDescription(
Expand All @@ -272,7 +272,7 @@ def update_device_model(
key="panasonic_heat_pump/main/Outside_Temp",
name="Aquarea Outdoor Ambient",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="CĀ°",
native_unit_of_measurement="Ā°C",
state_class=SensorStateClass.MEASUREMENT,
),
HeishaMonSensorEntityDescription(
Expand Down Expand Up @@ -307,13 +307,13 @@ def update_device_model(
key="panasonic_heat_pump/main/Outside_Pipe_Temp",
name="Aquarea Outdoor Pipe Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="CĀ°",
native_unit_of_measurement="Ā°C",
),
HeishaMonSensorEntityDescription(
key="panasonic_heat_pump/main/Z1_Heat_Request_Temp",
name="Aquarea Heatshift Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="CĀ°",
native_unit_of_measurement="Ā°C",
),
HeishaMonSensorEntityDescription(
key="panasonic_heat_pump/main/DHW_Energy_Production",
Expand All @@ -340,43 +340,43 @@ def update_device_model(
key="panasonic_heat_pump/main/Main_Hex_Outlet_Temp",
name="Aquarea Main HEX Outlet Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="CĀ°",
native_unit_of_measurement="Ā°C",
),
HeishaMonSensorEntityDescription(
key="panasonic_heat_pump/main/Discharge_Temp",
name="Aquarea Discharge Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="CĀ°",
native_unit_of_measurement="Ā°C",
),
HeishaMonSensorEntityDescription(
key="panasonic_heat_pump/main/Inside_Pipe_Temp",
name="Aquarea Inside Pipe Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="CĀ°",
native_unit_of_measurement="Ā°C",
),
HeishaMonSensorEntityDescription(
key="panasonic_heat_pump/main/Defrost_Temp",
name="Aquarea Defrost Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="CĀ°",
native_unit_of_measurement="Ā°C",
),
HeishaMonSensorEntityDescription(
key="panasonic_heat_pump/main/Eva_Outlet_Temp",
name="Aquarea Eva Outlet Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="CĀ°",
native_unit_of_measurement="Ā°C",
),
HeishaMonSensorEntityDescription(
key="panasonic_heat_pump/main/Bypass_Outlet_Temp",
name="Aquarea Bypass Outlet Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="CĀ°",
native_unit_of_measurement="Ā°C",
),
HeishaMonSensorEntityDescription(
key="panasonic_heat_pump/main/Ipm_Temp",
name="Aquarea Ipm Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement="CĀ°",
native_unit_of_measurement="Ā°C",
),
HeishaMonSensorEntityDescription(
key="panasonic_heat_pump/main/Fan1_Motor_Speed",
Expand Down

0 comments on commit 3b6b4a2

Please sign in to comment.