fixes
This commit is contained in:
@@ -92,7 +92,7 @@ class LEDStrip:
|
||||
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'] > 20:
|
||||
return;
|
||||
|
Reference in New Issue
Block a user