mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Add filters to upcoming launch library launches (#92110)
Add filters to upcoming launches
This commit is contained in:
parent
7801eeb063
commit
0ef29bfc0c
@ -40,7 +40,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
async def async_update() -> LaunchLibraryData:
|
async def async_update() -> LaunchLibraryData:
|
||||||
try:
|
try:
|
||||||
return LaunchLibraryData(
|
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(),
|
starship_events=await launches.starship_events(),
|
||||||
)
|
)
|
||||||
except PyLaunchesException as ex:
|
except PyLaunchesException as ex:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user