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) return DeviceFlow(hass, oauth_flow, device_flow_info)
class ApiAuthImpl(AbstractAuth): # type: ignore[misc] class ApiAuthImpl(AbstractAuth):
"""Authentication implementation for google calendar api library.""" """Authentication implementation for google calendar api library."""
def __init__( def __init__(
@ -191,7 +191,7 @@ class ApiAuthImpl(AbstractAuth): # type: ignore[misc]
return cast(str, self._session.token["access_token"]) 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. """Authentication implementation used during config flow, without refresh.
This exists to allow the config flow to use the API before it has fully 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.""" """Return True if the event is visible."""
if self._ignore_availability: if self._ignore_availability:
return True return True
return event.transparency == OPAQUE # type: ignore[no-any-return] return event.transparency == OPAQUE
async def async_get_events( async def async_get_events(
self, hass: HomeAssistant, start_date: datetime, end_date: datetime self, hass: HomeAssistant, start_date: datetime, end_date: datetime

View File

@ -4,7 +4,7 @@
"config_flow": true, "config_flow": true,
"dependencies": ["application_credentials"], "dependencies": ["application_credentials"],
"documentation": "https://www.home-assistant.io/integrations/calendar.google/", "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"], "codeowners": ["@allenporter"],
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"loggers": ["googleapiclient"] "loggers": ["googleapiclient"]

View File

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

View File

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