Show current day in met weather forecast (#91891)

Version 0.10.0 of pyMetno added the option
to defined range_start when calling get_forecast:
https://github.com/Danielhiversen/pyMetno/pull/35/files

So let's use that to include today in the forecast.
This commit is contained in:
Martin Malina 2023-05-24 16:07:59 +02:00 committed by GitHub
parent f8fdeeabc2
commit d2d21b4158
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -179,6 +179,6 @@ class MetWeatherData:
raise CannotConnect() raise CannotConnect()
self.current_weather_data = self._weather_data.get_current_weather() self.current_weather_data = self._weather_data.get_current_weather()
time_zone = dt_util.DEFAULT_TIME_ZONE time_zone = dt_util.DEFAULT_TIME_ZONE
self.daily_forecast = self._weather_data.get_forecast(time_zone, False) self.daily_forecast = self._weather_data.get_forecast(time_zone, False, 0)
self.hourly_forecast = self._weather_data.get_forecast(time_zone, True) self.hourly_forecast = self._weather_data.get_forecast(time_zone, True)
return self return self

View file

@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/met", "documentation": "https://www.home-assistant.io/integrations/met",
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"loggers": ["metno"], "loggers": ["metno"],
"requirements": ["pyMetno==0.9.0"] "requirements": ["pyMetno==0.10.0"]
} }

View file

@ -5,5 +5,5 @@
"documentation": "https://www.home-assistant.io/integrations/norway_air", "documentation": "https://www.home-assistant.io/integrations/norway_air",
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"loggers": ["metno"], "loggers": ["metno"],
"requirements": ["pyMetno==0.9.0"] "requirements": ["pyMetno==0.10.0"]
} }

View file

@ -1472,7 +1472,7 @@ pyMetEireann==2021.8.0
# homeassistant.components.met # homeassistant.components.met
# homeassistant.components.norway_air # homeassistant.components.norway_air
pyMetno==0.9.0 pyMetno==0.10.0
# homeassistant.components.rfxtrx # homeassistant.components.rfxtrx
pyRFXtrx==0.30.1 pyRFXtrx==0.30.1

View file

@ -1099,7 +1099,7 @@ pyMetEireann==2021.8.0
# homeassistant.components.met # homeassistant.components.met
# homeassistant.components.norway_air # homeassistant.components.norway_air
pyMetno==0.9.0 pyMetno==0.10.0
# homeassistant.components.rfxtrx # homeassistant.components.rfxtrx
pyRFXtrx==0.30.1 pyRFXtrx==0.30.1