Fix miflora worker requirements and fix pip version check
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user