From 7bc2e1238dc17d22eb81f970f1006b0aefbf90ee Mon Sep 17 00:00:00 2001 From: ericgingras Date: Tue, 28 Feb 2017 22:34:40 -0600 Subject: [PATCH] Convert kpH and mpH to kph and mph (#6316) There is no reason for the H to be capitalized. Changing it to lowercase increases consistency with other components and allows for use of the min/max sensor, which throws an error if the units of measurement are not the same. --- homeassistant/components/sensor/wunderground.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/sensor/wunderground.py b/homeassistant/components/sensor/wunderground.py index 67e19f225d5..93e747cd16f 100644 --- a/homeassistant/components/sensor/wunderground.py +++ b/homeassistant/components/sensor/wunderground.py @@ -68,10 +68,10 @@ SENSOR_TYPES = { 'weather': ['Weather Summary', None], 'wind_degrees': ['Wind Degrees', None], 'wind_dir': ['Wind Direction', None], - 'wind_gust_kph': ['Wind Gust', 'kpH'], - 'wind_gust_mph': ['Wind Gust', 'mpH'], - 'wind_kph': ['Wind Speed', 'kpH'], - 'wind_mph': ['Wind Speed', 'mpH'], + 'wind_gust_kph': ['Wind Gust', 'kph'], + 'wind_gust_mph': ['Wind Gust', 'mph'], + 'wind_kph': ['Wind Speed', 'kph'], + 'wind_mph': ['Wind Speed', 'mph'], 'wind_string': ['Wind Summary', None], }