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
4 changes: 2 additions & 2 deletions apps/automoli/automoli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from collections.abc import Coroutine, Iterable
from copy import deepcopy
from datetime import time
from distutils.version import StrictVersion
from packaging.version import Version
from enum import Enum, IntEnum
from inspect import stack
import logging
Expand Down Expand Up @@ -607,7 +607,7 @@ async def motion_event(
def has_min_ad_version(self, required_version: str) -> bool:
required_version = required_version if required_version else "4.0.7"
return bool(
StrictVersion(self.get_ad_version()) >= StrictVersion(required_version)
Version(self.get_ad_version()) >= Version(required_version)
)

async def clear_handles(self, handles: set[str] = None) -> None:
Expand Down