Add filters to upcoming launch library launches (#92110)
Add filters to upcoming launches
This commit is contained in:
parent
7801eeb063
commit
0ef29bfc0c
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue