From 7578d3e349f8713c5ac0f965353b95f4ff6a7253 Mon Sep 17 00:00:00 2001 From: Krisjanis Lejejs Date: Mon, 8 Jan 2024 18:40:49 +0200 Subject: [PATCH] Fix issues with missing dictionary attributes --- ThermiaOnlineAPI/model/HeatPump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ThermiaOnlineAPI/model/HeatPump.py b/ThermiaOnlineAPI/model/HeatPump.py index fa3e782..e3abf0a 100644 --- a/ThermiaOnlineAPI/model/HeatPump.py +++ b/ThermiaOnlineAPI/model/HeatPump.py @@ -483,7 +483,7 @@ def __get_running_operational_statuses( data_items_list = list(data.items()) current_operation_mode = [ - value.name + value.get("name") for key, value in data_items_list if key == current_register_value ]