mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Use existing constant (#18408)
This commit is contained in:
parent
0ab81b03a8
commit
ea4480f170
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user