mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +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",
|
"Humidity",
|
||||||
"Pressure",
|
"Pressure",
|
||||||
"Luminance",
|
"Luminance",
|
||||||
"UVIndex"]
|
"UVIndex",
|
||||||
|
"Voltage"]
|
||||||
|
|
||||||
# Sensor units - these do not currently align with the API documentation
|
# Sensor units - these do not currently align with the API documentation
|
||||||
SENSOR_UNITS = {"Temperature": TEMP_FAHRENHEIT,
|
SENSOR_UNITS = {"Temperature": TEMP_FAHRENHEIT,
|
||||||
"Humidity": "%",
|
"Humidity": "%",
|
||||||
"Pressure": "inHg",
|
"Pressure": "inHg",
|
||||||
"Luminance": "cd/m²"}
|
"Luminance": "cd/m²",
|
||||||
|
"Voltage": "mV"}
|
||||||
|
|
||||||
# Which sensors to format numerically
|
# Which sensors to format numerically
|
||||||
FORMAT_NUMBERS = ["Temperature", "Pressure"]
|
FORMAT_NUMBERS = ["Temperature", "Pressure", "Voltage"]
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
|
Loading…
x
Reference in New Issue
Block a user