From fc60d15e6059866aa23394e5749c54e6eda37f20 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Wed, 19 Jul 2023 23:55:37 +0200 Subject: [PATCH] Fix error for fridge without quickmode --- pyhon/appliances/ref.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyhon/appliances/ref.py b/pyhon/appliances/ref.py index 57facb3..787dd84 100644 --- a/pyhon/appliances/ref.py +++ b/pyhon/appliances/ref.py @@ -10,12 +10,12 @@ class Appliance(ApplianceBase): data["modeZ1"] = "holiday" elif data["parameters"]["intelligenceMode"] == "1": data["modeZ1"] = "auto_set" - elif data["parameters"]["quickModeZ1"] == "1": + elif data["parameters"].get("quickModeZ1") == "1": data["modeZ1"] = "super_cool" else: data["modeZ1"] = "no_mode" - if data["parameters"]["quickModeZ2"] == "1": + if data["parameters"].get("quickModeZ2") == "1": data["modeZ2"] = "super_freeze" elif data["parameters"]["intelligenceMode"] == "1": data["modeZ2"] = "auto_set"