fixes
This commit is contained in:
@@ -52,7 +52,7 @@ class Switch:
|
||||
return
|
||||
|
||||
# Check if light levels are low enough to turn on light
|
||||
collectionLight = EchoDB.EchoDB.database['LightLog']
|
||||
collectionLight = EchoDB.EchoDB.database['LightLogs']
|
||||
data = collectionLight.find().sort([('timestamp', -1)]).limit(1)
|
||||
if data[0]['light_amount'] > 250:
|
||||
return;
|
||||
|
Reference in New Issue
Block a user