Fix empty value in settings
This commit is contained in:
parent
5575b240e1
commit
8ef8c0405d
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue