fixed
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user