Update commands.py to fix None values

This commit is contained in:
Alexandre Leites 2023-03-14 14:30:00 +01:00 committed by GitHub
parent 318e60e91e
commit c9d4461f8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,5 +67,5 @@ class HonCommand:
@property
def settings(self):
"""Parameters with typology enum and range"""
return {s: self._parameters[s] for s in self.setting_keys}
return {s: self._parameters.get(s) for s in self.setting_keys if self._parameters.get(s) is not None}