Revert "Add humidity to tomorrowio hourly weather forecasts (#70186)" (#70311)

This reverts commit febcab11fbe43258f6553739c20f7232a662207d.
This commit is contained in:
Shay Levy 2022-04-20 11:56:13 +03:00 committed by GitHub
parent 4358152b63
commit 70616d2b78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 204 deletions

View File

@ -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,

View File

@ -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]

View File

@ -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