sql_app: correct monitor mac

Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
HeshamTB 2022-06-10 19:11:12 +03:00
parent 21d72f17b2
commit 6ae5b811f4
Signed by: Hesham
GPG Key ID: 74876157D199B09E

View File

@ -55,7 +55,7 @@ def init_door():
crud.create_iot_entity(db, iot_door)
def init_monitor():
iot_monitor = schemas.IotEntityCreate(bluetooth_mac="ff:ff:00:ff",
iot_monitor = schemas.IotEntityCreate(bluetooth_mac="ff:ff:ff",
description="Iot Lab Monitor")
monitor_exists = crud.get_monitor_bluetooth(db, iot_monitor.bluetooth_mac)
if monitor_exists: return