Include the Voltage sensor (#2285)

The API provides the voltage information and will be useful for people to troubleshoot their BloomSky.
This commit is contained in:
arsaboo 2016-06-12 19:19:13 -04:00 committed by Paulus Schoutsen
parent e437151881
commit 8e2c1ff4aa

View File

@ -17,16 +17,18 @@ SENSOR_TYPES = ["Temperature",
"Humidity",
"Pressure",
"Luminance",
"UVIndex"]
"UVIndex",
"Voltage"]
# Sensor units - these do not currently align with the API documentation
SENSOR_UNITS = {"Temperature": TEMP_FAHRENHEIT,
"Humidity": "%",
"Pressure": "inHg",
"Luminance": "cd/m²"}
"Luminance": "cd/m²",
"Voltage": "mV"}
# Which sensors to format numerically
FORMAT_NUMBERS = ["Temperature", "Pressure"]
FORMAT_NUMBERS = ["Temperature", "Pressure", "Voltage"]
# pylint: disable=unused-argument