Skip to content

Commit

Permalink
Merge pull request #55 from LeoThorsell/main
Browse files Browse the repository at this point in the history
add pool temperature sensor
  • Loading branch information
klejejs authored Oct 15, 2023
2 parents 05a8106 + 254d616 commit 6358818
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions custom_components/thermia/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,22 @@ async def async_setup_entry(
)
)

if heat_pump.pool_temperature is not None:
hass_thermia_sensors.append(
ThermiaGenericSensor(
coordinator,
idx,
"is_online",
"Pool Temperature",
MDI_TEMPERATURE_ICON,
EntityCategory.DIAGNOSTIC,
"temperature",
"measurement",
"pool_temperature",
TEMP_CELSIUS,
)
)

###########################################################################
# Operational status data
###########################################################################
Expand Down

0 comments on commit 6358818

Please sign in to comment.