mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 07:06:30 +00:00
Fix issues with special compiled binary with own version schema (#2783)
This commit is contained in:
parent
13910d44bf
commit
fb1eb44d82
@ -7,7 +7,7 @@ from pathlib import Path
|
|||||||
from typing import Any, Dict, Optional
|
from typing import Any, Dict, Optional
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
from awesomeversion import AwesomeVersion
|
from awesomeversion import AwesomeVersion, AwesomeVersionCompare
|
||||||
import docker
|
import docker
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
@ -56,7 +56,10 @@ class DockerInfo:
|
|||||||
@property
|
@property
|
||||||
def supported_version(self) -> bool:
|
def supported_version(self) -> bool:
|
||||||
"""Return true, if docker version is supported."""
|
"""Return true, if docker version is supported."""
|
||||||
return self.version >= MIN_SUPPORTED_DOCKER
|
try:
|
||||||
|
return self.version >= MIN_SUPPORTED_DOCKER
|
||||||
|
except AwesomeVersionCompare:
|
||||||
|
return False
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def support_cpu_realtime(self) -> bool:
|
def support_cpu_realtime(self) -> bool:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user