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_LOW,
TMRW_ATTR_TEMPERATURE_HIGH, TMRW_ATTR_TEMPERATURE_HIGH,
TMRW_ATTR_HUMIDITY,
TMRW_ATTR_WIND_SPEED, TMRW_ATTR_WIND_SPEED,
TMRW_ATTR_WIND_DIRECTION, TMRW_ATTR_WIND_DIRECTION,
TMRW_ATTR_CONDITION, TMRW_ATTR_CONDITION,

View File

@ -18,9 +18,6 @@ from homeassistant.components.weather import (
ATTR_CONDITION_WINDY, ATTR_CONDITION_WINDY,
) )
# Attribute missing from homeassistant.components.weather
ATTR_FORECAST_HUMIDITY = "humidity"
CONF_TIMESTEP = "timestep" CONF_TIMESTEP = "timestep"
FORECAST_TYPES = [DAILY, HOURLY, NOWCAST] FORECAST_TYPES = [DAILY, HOURLY, NOWCAST]

View File

@ -33,7 +33,6 @@ from homeassistant.util import dt as dt_util
from . import TomorrowioDataUpdateCoordinator, TomorrowioEntity from . import TomorrowioDataUpdateCoordinator, TomorrowioEntity
from .const import ( from .const import (
ATTR_FORECAST_HUMIDITY,
CLEAR_CONDITIONS, CLEAR_CONDITIONS,
CONDITIONS, CONDITIONS,
CONF_TIMESTEP, CONF_TIMESTEP,
@ -101,7 +100,6 @@ class TomorrowioWeatherEntity(TomorrowioEntity, WeatherEntity):
forecast_dt: datetime, forecast_dt: datetime,
use_datetime: bool, use_datetime: bool,
condition: int, condition: int,
humidity: float | None,
precipitation: float | None, precipitation: float | None,
precipitation_probability: float | None, precipitation_probability: float | None,
temp: float | None, temp: float | None,
@ -120,7 +118,6 @@ class TomorrowioWeatherEntity(TomorrowioEntity, WeatherEntity):
data = { data = {
ATTR_FORECAST_TIME: forecast_dt.isoformat(), ATTR_FORECAST_TIME: forecast_dt.isoformat(),
ATTR_FORECAST_CONDITION: translated_condition, ATTR_FORECAST_CONDITION: translated_condition,
ATTR_FORECAST_HUMIDITY: humidity,
ATTR_FORECAST_PRECIPITATION: precipitation, ATTR_FORECAST_PRECIPITATION: precipitation,
ATTR_FORECAST_PRECIPITATION_PROBABILITY: precipitation_probability, ATTR_FORECAST_PRECIPITATION_PROBABILITY: precipitation_probability,
ATTR_FORECAST_TEMP: temp, ATTR_FORECAST_TEMP: temp,
@ -214,7 +211,6 @@ class TomorrowioWeatherEntity(TomorrowioEntity, WeatherEntity):
use_datetime = True use_datetime = True
condition = values.get(TMRW_ATTR_CONDITION) condition = values.get(TMRW_ATTR_CONDITION)
humidity = values.get(TMRW_ATTR_HUMIDITY)
precipitation = values.get(TMRW_ATTR_PRECIPITATION) precipitation = values.get(TMRW_ATTR_PRECIPITATION)
precipitation_probability = values.get(TMRW_ATTR_PRECIPITATION_PROBABILITY) precipitation_probability = values.get(TMRW_ATTR_PRECIPITATION_PROBABILITY)
@ -241,7 +237,6 @@ class TomorrowioWeatherEntity(TomorrowioEntity, WeatherEntity):
forecast_dt, forecast_dt,
use_datetime, use_datetime,
condition, condition,
None if self.forecast_type == DAILY else humidity,
precipitation, precipitation,
precipitation_probability, precipitation_probability,
temp, temp,

File diff suppressed because it is too large Load Diff