Improve error handling

This commit is contained in:
Andre Basche 2023-07-09 23:58:55 +02:00
parent e234ef3bbb
commit 3d5c8405ea
2 changed files with 8 additions and 3 deletions

View file

@ -109,7 +109,7 @@ class HonAppliance:
@property
def nick_name(self) -> str:
result = self._check_name_zone("nickName")
if not result or re.findall("^[xX1\\s]+$", result):
if not result or re.findall("^[xX1\\s-]+$", result):
return self.model_name
return result