Bump gcal_sync to 0.10.0 and fix google typing (#73710)

Bump gcal_sync to 0.10.0
This commit is contained in:
Allen Porter 2022-06-19 11:16:07 -07:00 committed by GitHub
parent 9b93071720
commit ab95299150
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View file

@ -173,7 +173,7 @@ async def async_create_device_flow(
return DeviceFlow(hass, oauth_flow, device_flow_info)
class ApiAuthImpl(AbstractAuth): # type: ignore[misc]
class ApiAuthImpl(AbstractAuth):
"""Authentication implementation for google calendar api library."""
def __init__(
@ -191,7 +191,7 @@ class ApiAuthImpl(AbstractAuth): # type: ignore[misc]
return cast(str, self._session.token["access_token"])
class AccessTokenAuthImpl(AbstractAuth): # type: ignore[misc]
class AccessTokenAuthImpl(AbstractAuth):
"""Authentication implementation used during config flow, without refresh.
This exists to allow the config flow to use the API before it has fully

View file

@ -224,7 +224,7 @@ class GoogleCalendarEntity(CalendarEntity):
"""Return True if the event is visible."""
if self._ignore_availability:
return True
return event.transparency == OPAQUE # type: ignore[no-any-return]
return event.transparency == OPAQUE
async def async_get_events(
self, hass: HomeAssistant, start_date: datetime, end_date: datetime

View file

@ -4,7 +4,7 @@
"config_flow": true,
"dependencies": ["application_credentials"],
"documentation": "https://www.home-assistant.io/integrations/calendar.google/",
"requirements": ["gcal-sync==0.9.0", "oauth2client==4.1.3"],
"requirements": ["gcal-sync==0.10.0", "oauth2client==4.1.3"],
"codeowners": ["@allenporter"],
"iot_class": "cloud_polling",
"loggers": ["googleapiclient"]

View file

@ -692,7 +692,7 @@ gTTS==2.2.4
garages-amsterdam==3.0.0
# homeassistant.components.google
gcal-sync==0.9.0
gcal-sync==0.10.0
# homeassistant.components.geniushub
geniushub-client==0.6.30

View file

@ -495,7 +495,7 @@ gTTS==2.2.4
garages-amsterdam==3.0.0
# homeassistant.components.google
gcal-sync==0.9.0
gcal-sync==0.10.0
# homeassistant.components.geocaching
geocachingapi==0.2.1