Skip to content

Commit

Permalink
Fix calendar pull events
Browse files Browse the repository at this point in the history
  • Loading branch information
soloam committed May 3, 2024
1 parent 0a010cd commit c0889e2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions custom_components/fireflyiii_integration/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ async def async_setup_entry(
obj = FireflyiiiBillCalendarEntity(
coordinator,
FIREFLYIII_SENSOR_DESCRIPTIONS[FireflyiiiObjectType.BILLS],
None,
locale=user_locale,
)

Expand All @@ -71,10 +70,9 @@ def __init__(
self,
coordinator,
entity_description: Optional[EntityDescription] = None,
fireflyiii_id: Optional[str] = None,
locale: Optional[str] = None,
):
super().__init__(coordinator, entity_description, fireflyiii_id, locale)
super().__init__(coordinator, entity_description, None, locale)

self._attr_supported_features: List[str] = []

Expand Down Expand Up @@ -172,8 +170,6 @@ async def async_get_events(

timerange = dates_to_range(start_date, end_date)

bills = await coordinator.api.bills(
ids=[self.fireflyiii_id], timerange=timerange
)
bills = await coordinator.api.bills(timerange=timerange)

return self.fireflyiii_events(bills)

0 comments on commit c0889e2

Please sign in to comment.