Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
use runtimeconfiguration or states for setpoint, fixes #24
Browse files Browse the repository at this point in the history
  • Loading branch information
dynasticorpheus committed Dec 5, 2023
1 parent 73823de commit f52843b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/gigasetelements/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,9 @@ def get_sensor_attributes(self, item, attr):
"momentaryPowerMeasurement"
)
attr["pressure"] = item.get("states", {}).get("pressure")
attr["setpoint"] = item.get("runtimeConfiguration", {}).get("setPoint")
attr["setpoint"] = item.get("runtimeConfiguration", {}).get(
"setPoint"
) or item.get("states", {}).get("setPoint")
attr["temperature"] = item.get("states", {}).get("temperature")
attr["test_required"] = item.get(
"testRequired", item.get("states", {}).get("testRequired")
Expand Down

0 comments on commit f52843b

Please sign in to comment.