mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Add the missing humidity value to the Accuweather daily forecast (#119013)
Add the missing humidity value to the daily forecast Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
This commit is contained in:
parent
87114bf19b
commit
27e8a4ed6f
@ -7,6 +7,7 @@ from typing import cast
|
||||
from homeassistant.components.weather import (
|
||||
ATTR_FORECAST_CLOUD_COVERAGE,
|
||||
ATTR_FORECAST_CONDITION,
|
||||
ATTR_FORECAST_HUMIDITY,
|
||||
ATTR_FORECAST_NATIVE_APPARENT_TEMP,
|
||||
ATTR_FORECAST_NATIVE_PRECIPITATION,
|
||||
ATTR_FORECAST_NATIVE_TEMP,
|
||||
@ -183,6 +184,7 @@ class AccuWeatherEntity(
|
||||
{
|
||||
ATTR_FORECAST_TIME: utc_from_timestamp(item["EpochDate"]).isoformat(),
|
||||
ATTR_FORECAST_CLOUD_COVERAGE: item["CloudCoverDay"],
|
||||
ATTR_FORECAST_HUMIDITY: item["RelativeHumidityDay"]["Average"],
|
||||
ATTR_FORECAST_NATIVE_TEMP: item["TemperatureMax"][ATTR_VALUE],
|
||||
ATTR_FORECAST_NATIVE_TEMP_LOW: item["TemperatureMin"][ATTR_VALUE],
|
||||
ATTR_FORECAST_NATIVE_APPARENT_TEMP: item["RealFeelTemperatureMax"][
|
||||
|
@ -76,6 +76,7 @@
|
||||
"Unit": "C",
|
||||
"UnitType": 17
|
||||
},
|
||||
"RelativeHumidityDay": { "Average": 60 },
|
||||
"IconDay": 17,
|
||||
"IconPhraseDay": "Partly sunny w/ t-storms",
|
||||
"HasPrecipitationDay": true,
|
||||
@ -286,6 +287,7 @@
|
||||
"Unit": "C",
|
||||
"UnitType": 17
|
||||
},
|
||||
"RelativeHumidityDay": { "Average": 58 },
|
||||
"IconDay": 4,
|
||||
"IconPhraseDay": "Intermittent clouds",
|
||||
"HasPrecipitationDay": false,
|
||||
@ -492,6 +494,7 @@
|
||||
"Unit": "C",
|
||||
"UnitType": 17
|
||||
},
|
||||
"RelativeHumidityDay": { "Average": 52 },
|
||||
"IconDay": 4,
|
||||
"IconPhraseDay": "Intermittent clouds",
|
||||
"HasPrecipitationDay": false,
|
||||
@ -698,6 +701,7 @@
|
||||
"Unit": "C",
|
||||
"UnitType": 17
|
||||
},
|
||||
"RelativeHumidityDay": { "Average": 65 },
|
||||
"IconDay": 3,
|
||||
"IconPhraseDay": "Partly sunny",
|
||||
"HasPrecipitationDay": false,
|
||||
@ -904,6 +908,7 @@
|
||||
"Unit": "C",
|
||||
"UnitType": 17
|
||||
},
|
||||
"RelativeHumidityDay": { "Average": 55 },
|
||||
"IconDay": 4,
|
||||
"IconPhraseDay": "Intermittent clouds",
|
||||
"HasPrecipitationDay": false,
|
||||
|
@ -7,6 +7,7 @@
|
||||
'cloud_coverage': 58,
|
||||
'condition': 'lightning-rainy',
|
||||
'datetime': '2020-07-26T05:00:00+00:00',
|
||||
'humidity': 60,
|
||||
'precipitation': 2.5,
|
||||
'precipitation_probability': 60,
|
||||
'temperature': 29.5,
|
||||
@ -21,6 +22,7 @@
|
||||
'cloud_coverage': 52,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-27T05:00:00+00:00',
|
||||
'humidity': 58,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 25,
|
||||
'temperature': 26.2,
|
||||
@ -35,6 +37,7 @@
|
||||
'cloud_coverage': 65,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-28T05:00:00+00:00',
|
||||
'humidity': 52,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 10,
|
||||
'temperature': 31.7,
|
||||
@ -49,6 +52,7 @@
|
||||
'cloud_coverage': 45,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-29T05:00:00+00:00',
|
||||
'humidity': 65,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 9,
|
||||
'temperature': 24.0,
|
||||
@ -63,6 +67,7 @@
|
||||
'cloud_coverage': 50,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-30T05:00:00+00:00',
|
||||
'humidity': 55,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 1,
|
||||
'temperature': 21.4,
|
||||
@ -84,6 +89,7 @@
|
||||
'cloud_coverage': 58,
|
||||
'condition': 'lightning-rainy',
|
||||
'datetime': '2020-07-26T05:00:00+00:00',
|
||||
'humidity': 60,
|
||||
'precipitation': 2.5,
|
||||
'precipitation_probability': 60,
|
||||
'temperature': 29.5,
|
||||
@ -98,6 +104,7 @@
|
||||
'cloud_coverage': 52,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-27T05:00:00+00:00',
|
||||
'humidity': 58,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 25,
|
||||
'temperature': 26.2,
|
||||
@ -112,6 +119,7 @@
|
||||
'cloud_coverage': 65,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-28T05:00:00+00:00',
|
||||
'humidity': 52,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 10,
|
||||
'temperature': 31.7,
|
||||
@ -126,6 +134,7 @@
|
||||
'cloud_coverage': 45,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-29T05:00:00+00:00',
|
||||
'humidity': 65,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 9,
|
||||
'temperature': 24.0,
|
||||
@ -140,6 +149,7 @@
|
||||
'cloud_coverage': 50,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-30T05:00:00+00:00',
|
||||
'humidity': 55,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 1,
|
||||
'temperature': 21.4,
|
||||
@ -160,6 +170,7 @@
|
||||
'cloud_coverage': 58,
|
||||
'condition': 'lightning-rainy',
|
||||
'datetime': '2020-07-26T05:00:00+00:00',
|
||||
'humidity': 60,
|
||||
'precipitation': 2.5,
|
||||
'precipitation_probability': 60,
|
||||
'temperature': 29.5,
|
||||
@ -174,6 +185,7 @@
|
||||
'cloud_coverage': 52,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-27T05:00:00+00:00',
|
||||
'humidity': 58,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 25,
|
||||
'temperature': 26.2,
|
||||
@ -188,6 +200,7 @@
|
||||
'cloud_coverage': 65,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-28T05:00:00+00:00',
|
||||
'humidity': 52,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 10,
|
||||
'temperature': 31.7,
|
||||
@ -202,6 +215,7 @@
|
||||
'cloud_coverage': 45,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-29T05:00:00+00:00',
|
||||
'humidity': 65,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 9,
|
||||
'temperature': 24.0,
|
||||
@ -216,6 +230,7 @@
|
||||
'cloud_coverage': 50,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-30T05:00:00+00:00',
|
||||
'humidity': 55,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 1,
|
||||
'temperature': 21.4,
|
||||
@ -234,6 +249,7 @@
|
||||
'cloud_coverage': 58,
|
||||
'condition': 'lightning-rainy',
|
||||
'datetime': '2020-07-26T05:00:00+00:00',
|
||||
'humidity': 60,
|
||||
'precipitation': 2.5,
|
||||
'precipitation_probability': 60,
|
||||
'temperature': 29.5,
|
||||
@ -248,6 +264,7 @@
|
||||
'cloud_coverage': 52,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-27T05:00:00+00:00',
|
||||
'humidity': 58,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 25,
|
||||
'temperature': 26.2,
|
||||
@ -262,6 +279,7 @@
|
||||
'cloud_coverage': 65,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-28T05:00:00+00:00',
|
||||
'humidity': 52,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 10,
|
||||
'temperature': 31.7,
|
||||
@ -276,6 +294,7 @@
|
||||
'cloud_coverage': 45,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-29T05:00:00+00:00',
|
||||
'humidity': 65,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 9,
|
||||
'temperature': 24.0,
|
||||
@ -290,6 +309,7 @@
|
||||
'cloud_coverage': 50,
|
||||
'condition': 'partlycloudy',
|
||||
'datetime': '2020-07-30T05:00:00+00:00',
|
||||
'humidity': 55,
|
||||
'precipitation': 0.0,
|
||||
'precipitation_probability': 1,
|
||||
'temperature': 21.4,
|
||||
|
Loading…
x
Reference in New Issue
Block a user