Skip to content

Commit 1b38da4

Browse files
author
Vaclav
committed
remove tyoes
1 parent 57d763f commit 1b38da4

File tree

1 file changed

+4
-4
lines changed
  • custom_components/garbage_collection

1 file changed

+4
-4
lines changed

custom_components/garbage_collection/sensor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ async def _async_monthly_candidate(self, day1: date) -> date:
405405
WEEKDAYS.index(self._collection_days[0]),
406406
)
407407

408-
async def _async_find_candidate_date(self, day1: date) -> Optional[date]:
408+
async def _async_find_candidate_date(self, day1: date):
409409
"""Find the next possible date starting from day1.
410410
411411
Only based on calendar, not looking at include/exclude days.
@@ -526,7 +526,7 @@ async def _async_skip_holidays(self, date_candidate: date) -> date:
526526

527527
def _insert_include_date(
528528
self, day1: date, next_date: Union[date, None]
529-
) -> Union[date, None]:
529+
):
530530
"""Add include dates."""
531531
include_dates = list(filter(lambda date: date >= day1, self._include_dates))
532532
if len(include_dates) > 0 and (
@@ -622,7 +622,7 @@ def move_to_range(self, day: date) -> date:
622622
return date(year, self._first_month, 1)
623623
return day
624624

625-
async def _async_find_next_date(self, first_date: date) -> Optional[date]:
625+
async def _async_find_next_date(self, first_date: date):
626626
"""Get date within configured date range."""
627627
# Today's collection can be triggered by past collection with offset
628628
if self._frequency == "blank":
@@ -641,7 +641,7 @@ async def _async_find_next_date(self, first_date: date) -> Optional[date]:
641641
try:
642642
next_date = await self._async_find_candidate_date(day1) + relativedelta(
643643
days=self._offset
644-
) # type: ignore
644+
)
645645
next_date = await self._async_skip_holidays(next_date)
646646
except ValueError:
647647
raise

0 commit comments

Comments
 (0)