mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
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:
parent
e437151881
commit
8e2c1ff4aa
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user