Fix empty value in settings
This commit is contained in:
		@@ -250,7 +250,9 @@ class HonAppliance:
 | 
				
			|||||||
        if not (command := self.commands.get(command_name)):
 | 
					        if not (command := self.commands.get(command_name)):
 | 
				
			||||||
            return
 | 
					            return
 | 
				
			||||||
        for key in command.setting_keys:
 | 
					        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
 | 
					                continue
 | 
				
			||||||
            setting = command.settings[key]
 | 
					            setting = command.settings[key]
 | 
				
			||||||
            try:
 | 
					            try:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user