From ecf5adefa88ccb207d2600839ad59fbbb1bf6f55 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sun, 25 Jan 2026 16:12:15 +0100 Subject: [PATCH] Update types packages (#161579) --- homeassistant/components/habitica/calendar.py | 6 ++---- requirements_test.txt | 12 ++++++------ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/habitica/calendar.py b/homeassistant/components/habitica/calendar.py index b87a49670b0..7dd5d5b4675 100644 --- a/homeassistant/components/habitica/calendar.py +++ b/homeassistant/components/habitica/calendar.py @@ -6,7 +6,7 @@ from abc import abstractmethod from dataclasses import asdict from datetime import date, datetime, timedelta from enum import StrEnum -from typing import TYPE_CHECKING, cast +from typing import TYPE_CHECKING from uuid import UUID from dateutil.rrule import rrule @@ -94,11 +94,9 @@ class HabiticaCalendarEntity(HabiticaBase, CalendarEntity): ) -> list[datetime]: """Calculate recurrence dates based on start_date and end_date.""" if end_date: - recurrence_dates = recurrences.between( + return recurrences.between( start_date, end_date - timedelta(days=1), inc=True ) - - return cast(list[datetime], recurrence_dates) # if no end_date is given, return only the next recurrence return [recurrences.after(start_date, inc=True)] diff --git a/requirements_test.txt b/requirements_test.txt index 0e66d530eff..9bd6a32956b 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -41,14 +41,14 @@ types-atomicwrites==1.4.5.1 types-croniter==6.0.0.20250809 types-caldav==1.3.0.20250516 types-chardet==0.1.5 -types-decorator==5.2.0.20250324 +types-decorator==5.2.0.20251101 types-pexpect==4.9.0.20250916 types-protobuf==6.30.2.20250914 -types-psutil==7.0.0.20251001 +types-psutil==7.1.1.20251122 types-pyserial==3.5.0.20251001 -types-python-dateutil==2.9.0.20250822 +types-python-dateutil==2.9.0.20260124 types-python-slugify==8.0.2.20240310 -types-pytz==2025.2.0.20250809 +types-pytz==2025.2.0.20251108 types-PyYAML==6.0.12.20250915 -types-requests==2.32.4.20250913 -types-xmltodict==1.0.1.20250920 +types-requests==2.32.4.20260107 +types-xmltodict==1.0.1.20260113