From 8e2c1ff4aa366d20558813ff4444e71b80db8ee4 Mon Sep 17 00:00:00 2001 From: arsaboo Date: Sun, 12 Jun 2016 19:19:13 -0400 Subject: [PATCH] Include the Voltage sensor (#2285) The API provides the voltage information and will be useful for people to troubleshoot their BloomSky. --- homeassistant/components/sensor/bloomsky.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/sensor/bloomsky.py b/homeassistant/components/sensor/bloomsky.py index 790ed53dc34..a9d2c0c6631 100644 --- a/homeassistant/components/sensor/bloomsky.py +++ b/homeassistant/components/sensor/bloomsky.py @@ -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