Log when BME sensor is not found during setup & when spawning sensor background task

This commit is contained in:
2021-11-13 18:29:42 +01:00
parent 86debb9abb
commit e6adc5b152
2 changed files with 20 additions and 10 deletions

View File

@@ -22,7 +22,10 @@ if isItInArgv('-d') or isItInArgv('--daemon'):
brewCamera.spawnBackgroundCapture()
for sensor in sensors:
sensor.spawnBackgroundSensorLog()
try:
sensor.spawnBackgroundSensorLog()
except Error as error:
print('Error while spawning sensor background task:', error)
def sensorTemp(location):
sensor = BrewSensor.getSensorByItsLocation(sensors, location)