fixed
This commit is contained in:
parent
6b47c3f555
commit
8ac5161ad0
@ -35,4 +35,4 @@ REPORT_INTERVAL = float(os.environ.get("REPORT_INTERVAL", 15))
|
|||||||
|
|
||||||
DISABLE_AI = os.environ.get("DISABLE_AI").lower() in ['yes', '1', 'true']
|
DISABLE_AI = os.environ.get("DISABLE_AI").lower() in ['yes', '1', 'true']
|
||||||
|
|
||||||
PLATFORM = os.environ.get("PLATFORM", "raspberry")
|
PLATFORM = os.environ.get("", "raspberry")
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
import config
|
from config import PLATFORM
|
||||||
|
|
||||||
if config.PLATFORM == 'raspberry':
|
if PLATFORM == 'raspberry':
|
||||||
from birbnetes_iot_platform_raspberry import BirbnetesIoTPlatformStatusDriver, BirbnetesIoTPlatformRecordDriver, \
|
from birbnetes_iot_platform_raspberry import BirbnetesIoTPlatformStatusDriver, BirbnetesIoTPlatformRecordDriver, \
|
||||||
BirbnetesIoTPlatformPlaybackDriver
|
BirbnetesIoTPlatformPlaybackDriver
|
||||||
|
|
||||||
elif config.PLATFORM == 'emulator':
|
elif PLATFORM == 'emulator':
|
||||||
from birbnetes_iot_platform_emulator import BirbnetesIoTPlatformStatusDriver, BirbnetesIoTPlatformRecordDriver, \
|
from birbnetes_iot_platform_emulator import BirbnetesIoTPlatformStatusDriver, BirbnetesIoTPlatformRecordDriver, \
|
||||||
BirbnetesIoTPlatformPlaybackDriver
|
BirbnetesIoTPlatformPlaybackDriver
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise ModuleNotFoundError(f"Could not load platform driver for {config.PLATFORM}")
|
raise ModuleNotFoundError(f"Could not load platform driver for {PLATFORM}")
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
'BirbnetesIoTPlatformStatusDriver',
|
'BirbnetesIoTPlatformStatusDriver',
|
||||||
|
Loading…
Reference in New Issue
Block a user