Add default value to parameter

This commit is contained in:
Jules 2024-05-20 10:17:53 +02:00
parent 911aa3a1c7
commit f5ebf31b0e
Signed by: jdejaegh
GPG key ID: 99D6D184CA66933A

View file

@ -151,7 +151,7 @@ class IrmKmiWeather(CoordinatorEntity, WeatherEntity):
return [f for f in data if f.get('is_daytime')] return [f for f in data if f.get('is_daytime')]
def get_forecasts_radar_service(self, include_past_forecasts: bool) -> List[Forecast] | None: def get_forecasts_radar_service(self, include_past_forecasts: bool = False) -> List[Forecast] | None:
""" """
Forecast service based on data from the radar. Only contains datetime and precipitation amount. Forecast service based on data from the radar. Only contains datetime and precipitation amount.
The result always include the current 10 minutes interval, even if include_past_forecast is false. The result always include the current 10 minutes interval, even if include_past_forecast is false.