Skip to content

Commit d2ba4e4

Browse files
authored
Fix minimal server version check (#72)
1 parent 581c049 commit d2ba4e4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

zwave_js_server/client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,9 @@ def _check_server_version(self, server_version: str) -> None:
379379
"""Perform a basic check on the server version compatability."""
380380
cur_version = parse_version(server_version)
381381
min_version = parse_version(MIN_SERVER_VERSION)
382-
if (cur_version.major != min_version.major) or (
383-
cur_version.minor < min_version.minor
384-
):
382+
if cur_version < min_version:
385383
raise InvalidServerVersion
386-
if cur_version.minor > min_version:
384+
if cur_version != min_version:
387385
self._logger.warning(
388386
"Connected to a Zwave JS Server with an untested version, \
389387
you may run into compatibility issues!"

0 commit comments

Comments
 (0)