Skip to content

Commit

Permalink
Show current day in met weather forecast
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mmalina committed Apr 23, 2023
1 parent f18056f commit 75550ce
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/met/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ async def fetch_data(self) -> Self:
raise CannotConnect()
self.current_weather_data = self._weather_data.get_current_weather()
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)
return self
2 changes: 1 addition & 1 deletion homeassistant/components/met/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/met",
"iot_class": "cloud_polling",
"loggers": ["metno"],
"requirements": ["pyMetno==0.9.0"]
"requirements": ["pyMetno==0.10.0"]
}
2 changes: 1 addition & 1 deletion homeassistant/components/norway_air/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"documentation": "https://www.home-assistant.io/integrations/norway_air",
"iot_class": "cloud_polling",
"loggers": ["metno"],
"requirements": ["pyMetno==0.9.0"]
"requirements": ["pyMetno==0.10.0"]
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1466,7 +1466,7 @@ pyMetEireann==2021.8.0

# homeassistant.components.met
# homeassistant.components.norway_air
pyMetno==0.9.0
pyMetno==0.10.0

# homeassistant.components.rfxtrx
pyRFXtrx==0.30.1
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ pyMetEireann==2021.8.0

# homeassistant.components.met
# homeassistant.components.norway_air
pyMetno==0.9.0
pyMetno==0.10.0

# homeassistant.components.rfxtrx
pyRFXtrx==0.30.1
Expand Down

0 comments on commit 75550ce

Please sign in to comment.