From ea4480f170065dd89b4f963c5c69864aa7cfa631 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 12 Nov 2018 22:32:30 +0100 Subject: [PATCH] Use existing constant (#18408) --- homeassistant/components/weather/ecobee.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/weather/ecobee.py b/homeassistant/components/weather/ecobee.py index 5a191aa7af1..7382e5c1815 100644 --- a/homeassistant/components/weather/ecobee.py +++ b/homeassistant/components/weather/ecobee.py @@ -5,19 +5,18 @@ For more details about this platform, please refer to the documentation at https://home-assistant.io/components/weather.ecobee/ """ from datetime import datetime + from homeassistant.components import ecobee from homeassistant.components.weather import ( - WeatherEntity, ATTR_FORECAST_CONDITION, ATTR_FORECAST_TEMP, - ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME) -from homeassistant.const import (TEMP_FAHRENHEIT) - + ATTR_FORECAST_CONDITION, ATTR_FORECAST_TEMP, ATTR_FORECAST_TEMP_LOW, + ATTR_FORECAST_TIME, ATTR_FORECAST_WIND_SPEED, WeatherEntity) +from homeassistant.const import TEMP_FAHRENHEIT DEPENDENCIES = ['ecobee'] ATTR_FORECAST_TEMP_HIGH = 'temphigh' ATTR_FORECAST_PRESSURE = 'pressure' ATTR_FORECAST_VISIBILITY = 'visibility' -ATTR_FORECAST_WIND_SPEED = 'windspeed' ATTR_FORECAST_HUMIDITY = 'humidity' MISSING_DATA = -5002 @@ -41,7 +40,7 @@ class EcobeeWeather(WeatherEntity): """Representation of Ecobee weather data.""" def __init__(self, name, index): - """Initialize the sensor.""" + """Initialize the Ecobee weather platform.""" self._name = name self._index = index self.weather = None