Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions OWNd/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,11 @@ async def _negotiate_exchange(self) -> dict:

if self._gateway.password is not None and not (
isinstance(self._gateway.password, str)
and self._gateway.password.isascii()
and self._gateway.password.isdecimal()
and self._gateway.password.isalnum()
and len(self._gateway.password) <= 16
):
self._logger.error(
"%s Invalid OpenWebNet password: expected decimal digits only.",
"%s Invalid OpenWebNet password: expected alphanumerics only.",
self._log_id,
)
return {"Success": False, "Message": "password_error"}
Expand Down