Fix miflora worker requirements and fix pip version check

This commit is contained in:
zewelor
2018-10-05 22:26:54 +02:00
parent c2be780b75
commit 4e187b6820
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ from interruptingcow import timeout
from mqtt import MqttMessage
from workers.base import BaseWorker
REQUIREMENTS = ['git+https://github.com/open-homeautomation/miflora.git@84f39432082796412d05b754c948499a1ad710e7#egg=miflora']
REQUIREMENTS = ['git+https://github.com/open-homeautomation/miflora.git@84f39432082796412d05b754c948499a1ad710e7#egg=miflora', 'bluepy']
monitoredAttrs = ["temperature", "moisture", "light", "conductivity", "battery"]
+1 -1
View File
@@ -2,7 +2,7 @@ import importlib
import threading
from pip import __version__ as pip_version
if pip_version > "10.0":
if int(pip_version.split('.')[0]) > 10:
from pip._internal import main as pip_main
else:
from pip import main as pip_main