Fix some errors

This commit is contained in:
Andre Basche 2023-05-08 00:03:29 +02:00
parent 7bd3aac7c5
commit 8e16b4a215
4 changed files with 11 additions and 5 deletions

View file

@ -103,7 +103,8 @@ class HonCommand:
@category.setter
def category(self, category: str) -> None:
self._appliance.commands[self._name] = self.categories[category]
if category in self.categories:
self._appliance.commands[self._name] = self.categories[category]
@property
def setting_keys(self) -> List[str]: