Skip to content

Commit 7578d3e

Browse files
committed
Fix issues with missing dictionary attributes
1 parent 3fbb295 commit 7578d3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ThermiaOnlineAPI/model/HeatPump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def __get_running_operational_statuses(
483483
data_items_list = list(data.items())
484484

485485
current_operation_mode = [
486-
value.name
486+
value.get("name")
487487
for key, value in data_items_list
488488
if key == current_register_value
489489
]

0 commit comments

Comments
 (0)