From bf2015fcb99e6225fa5255fb1c12f9d8a1ac55ba Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Wed, 19 Jul 2023 19:52:21 +0200 Subject: [PATCH] Fix empty value in settings --- pyhon/appliance.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyhon/appliance.py b/pyhon/appliance.py index 05b4b8d..3984e71 100644 --- a/pyhon/appliance.py +++ b/pyhon/appliance.py @@ -253,7 +253,9 @@ class HonAppliance: if not (command := self.commands.get(command_name)): return for key in command.setting_keys: - if (new := self.attributes.get("parameters", {}).get(key)) is None: + if ( + new := self.attributes.get("parameters", {}).get(key) + ) is None or new.value == "": continue setting = command.settings[key] try: