Skip to content

Commit

Permalink
Merge pull request #104 from tadasdanielius/90-does-not-update-dhw-ta…
Browse files Browse the repository at this point in the history
…rget-temperature

90 does not update dhw target temperature
  • Loading branch information
tadasdanielius authored Aug 30, 2024
2 parents 1b4d25d + f365ea9 commit a4bd8fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion custom_components/daikin_altherma/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"pyaltherma==0.0.21"
],
"ssdp": [],
"version": "1.5.0",
"version": "1.5.2",
"zeroconf": [
"_daikin._tcp.local."
]
Expand Down
13 changes: 8 additions & 5 deletions custom_components/daikin_altherma/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,14 @@ def supported_features(self):
@property
def target_temperature(self) -> float:
status = self._get_status()
target_temperature = status[
"operations"
]["TargetTemperature"]

return target_temperature
operations = status["operations"]

if "DomesticHotWaterTemperatureHeating":
return operations["DomesticHotWaterTemperatureHeating"]
elif "TargetTemperature" in operations:
return operations["TargetTemperature"]
else:
return 0

@property
def current_temperature(self) -> float:
Expand Down

0 comments on commit a4bd8fd

Please sign in to comment.