From 8ef8c0405d9bec8d3a3ad1db8e6c3e17b8ada066 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 86d39db..2b0959c 100644 --- a/pyhon/appliance.py +++ b/pyhon/appliance.py @@ -250,7 +250,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: