mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
This reverts commit febcab11fbe43258f6553739c20f7232a662207d.
This commit is contained in:
parent
4358152b63
commit
70616d2b78
@ -297,7 +297,6 @@ class TomorrowioDataUpdateCoordinator(DataUpdateCoordinator):
|
||||
[
|
||||
TMRW_ATTR_TEMPERATURE_LOW,
|
||||
TMRW_ATTR_TEMPERATURE_HIGH,
|
||||
TMRW_ATTR_HUMIDITY,
|
||||
TMRW_ATTR_WIND_SPEED,
|
||||
TMRW_ATTR_WIND_DIRECTION,
|
||||
TMRW_ATTR_CONDITION,
|
||||
|
@ -18,9 +18,6 @@ from homeassistant.components.weather import (
|
||||
ATTR_CONDITION_WINDY,
|
||||
)
|
||||
|
||||
# Attribute missing from homeassistant.components.weather
|
||||
ATTR_FORECAST_HUMIDITY = "humidity"
|
||||
|
||||
CONF_TIMESTEP = "timestep"
|
||||
FORECAST_TYPES = [DAILY, HOURLY, NOWCAST]
|
||||
|
||||
|
@ -33,7 +33,6 @@ from homeassistant.util import dt as dt_util
|
||||
|
||||
from . import TomorrowioDataUpdateCoordinator, TomorrowioEntity
|
||||
from .const import (
|
||||
ATTR_FORECAST_HUMIDITY,
|
||||
CLEAR_CONDITIONS,
|
||||
CONDITIONS,
|
||||
CONF_TIMESTEP,
|
||||
@ -101,7 +100,6 @@ class TomorrowioWeatherEntity(TomorrowioEntity, WeatherEntity):
|
||||
forecast_dt: datetime,
|
||||
use_datetime: bool,
|
||||
condition: int,
|
||||
humidity: float | None,
|
||||
precipitation: float | None,
|
||||
precipitation_probability: float | None,
|
||||
temp: float | None,
|
||||
@ -120,7 +118,6 @@ class TomorrowioWeatherEntity(TomorrowioEntity, WeatherEntity):
|
||||
data = {
|
||||
ATTR_FORECAST_TIME: forecast_dt.isoformat(),
|
||||
ATTR_FORECAST_CONDITION: translated_condition,
|
||||
ATTR_FORECAST_HUMIDITY: humidity,
|
||||
ATTR_FORECAST_PRECIPITATION: precipitation,
|
||||
ATTR_FORECAST_PRECIPITATION_PROBABILITY: precipitation_probability,
|
||||
ATTR_FORECAST_TEMP: temp,
|
||||
@ -214,7 +211,6 @@ class TomorrowioWeatherEntity(TomorrowioEntity, WeatherEntity):
|
||||
use_datetime = True
|
||||
|
||||
condition = values.get(TMRW_ATTR_CONDITION)
|
||||
humidity = values.get(TMRW_ATTR_HUMIDITY)
|
||||
precipitation = values.get(TMRW_ATTR_PRECIPITATION)
|
||||
precipitation_probability = values.get(TMRW_ATTR_PRECIPITATION_PROBABILITY)
|
||||
|
||||
@ -241,7 +237,6 @@ class TomorrowioWeatherEntity(TomorrowioEntity, WeatherEntity):
|
||||
forecast_dt,
|
||||
use_datetime,
|
||||
condition,
|
||||
None if self.forecast_type == DAILY else humidity,
|
||||
precipitation,
|
||||
precipitation_probability,
|
||||
temp,
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user