mirror of
https://github.com/Andre0512/pyhOn.git
synced 2026-06-22 15:51:11 +02:00
Improve error handling
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user