From 0ef29bfc0c2ad17d9e45134bc1ae09eadcd2a788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Thu, 27 Apr 2023 13:36:43 +0200 Subject: [PATCH] Add filters to upcoming launch library launches (#92110) Add filters to upcoming launches --- homeassistant/components/launch_library/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/launch_library/__init__.py b/homeassistant/components/launch_library/__init__.py index 34ee7441351..e85c9c81566 100644 --- a/homeassistant/components/launch_library/__init__.py +++ b/homeassistant/components/launch_library/__init__.py @@ -40,7 +40,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: async def async_update() -> LaunchLibraryData: try: return LaunchLibraryData( - upcoming_launches=await launches.upcoming_launches(), + upcoming_launches=await launches.upcoming_launches( + filters={"limit": 1, "hide_recent_previous": "True"}, + ), starship_events=await launches.starship_events(), ) except PyLaunchesException as ex: