This commit is contained in:
2021-11-22 20:31:36 +01:00
parent 6b47c3f555
commit 8ac5161ad0
2 changed files with 5 additions and 5 deletions

View File

@@ -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, \
BirbnetesIoTPlatformPlaybackDriver
elif config.PLATFORM == 'emulator':
elif PLATFORM == 'emulator':
from birbnetes_iot_platform_emulator import BirbnetesIoTPlatformStatusDriver, BirbnetesIoTPlatformRecordDriver, \
BirbnetesIoTPlatformPlaybackDriver
else:
raise ModuleNotFoundError(f"Could not load platform driver for {config.PLATFORM}")
raise ModuleNotFoundError(f"Could not load platform driver for {PLATFORM}")
__all__ = [
'BirbnetesIoTPlatformStatusDriver',