Corrected sensor name BCM600 --> BME680

This commit is contained in:
2021-10-03 19:34:46 +02:00
parent 7bdbf0b4dc
commit 0754cef450
3 changed files with 6 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ import yaml
from flask import Flask, request, render_template, send_file, redirect, send_from_directory
import source # take a look in source/__init__.py
from brewSensor import BCM600Sensor, DHT11Sensor, BrewSensor
from brewSensor import BME680Sensor, DHT11Sensor, BrewSensor
from brewCamera import BrewCamera
from brewRelay import BrewRelay
@@ -14,7 +14,7 @@ brewCamera = BrewCamera(20)
def readYaml(filePath):
loader = yaml.SafeLoader
loader.add_constructor('!Relay', BrewRelay.fromYaml)
loader.add_constructor('!bcm600', BCM600Sensor.fromYaml)
loader.add_constructor('!bme680', BME680Sensor.fromYaml)
loader.add_constructor('!dht11', DHT11Sensor.fromYaml)
return yaml.load(open(filePath, "rb"), Loader=loader)