diff --git a/resa_padel/gestion_sports/gestion_sports_operations.py b/resa_padel/gestion_sports/gestion_sports_operations.py index de10d9b..1c06881 100644 --- a/resa_padel/gestion_sports/gestion_sports_operations.py +++ b/resa_padel/gestion_sports/gestion_sports_operations.py @@ -12,7 +12,7 @@ LOGGER = logging.getLogger(__name__) class GestionSportsOperations: def __init__(self, club: Club): - self.platform: GestionSportsConnector = None + self.platform: GestionSportsConnector | None = None self.club: Club = club self.session: ClientSession | None = None @@ -30,7 +30,7 @@ class GestionSportsOperations: await self.platform.land() await self.platform.login(user, self.club) - self.wait_until_booking_time(self.club, booking_filter) + wait_until_booking_time(self.club, booking_filter) return await self.platform.book(booking_filter, self.club)