From ab95299150ea489d42b6903454b9e064344f98fb Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Sun, 19 Jun 2022 11:16:07 -0700 Subject: [PATCH] Bump gcal_sync to 0.10.0 and fix `google` typing (#73710) Bump gcal_sync to 0.10.0 --- homeassistant/components/google/api.py | 4 ++-- homeassistant/components/google/calendar.py | 2 +- homeassistant/components/google/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/google/api.py b/homeassistant/components/google/api.py index a4cda1ff41a..f4a4912a1b9 100644 --- a/homeassistant/components/google/api.py +++ b/homeassistant/components/google/api.py @@ -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 diff --git a/homeassistant/components/google/calendar.py b/homeassistant/components/google/calendar.py index 39e3d69e6b9..e27eb0b1336 100644 --- a/homeassistant/components/google/calendar.py +++ b/homeassistant/components/google/calendar.py @@ -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 diff --git a/homeassistant/components/google/manifest.json b/homeassistant/components/google/manifest.json index 081eae34a95..d39f2093cf0 100644 --- a/homeassistant/components/google/manifest.json +++ b/homeassistant/components/google/manifest.json @@ -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"] diff --git a/requirements_all.txt b/requirements_all.txt index 687abb03abd..494ad4f27ab 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 1f07b1a4a1d..af74cc1329c 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -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