Skip to content

Google Nest integration failed to set up #55687

Closed
@timconinx

Description

@timconinx

The problem

The devices and entities provided by the google nest integration became unavailable on upgrade to 2021.9.2

What is version of Home Assistant Core has the issue?

core-2021.9.2

What was the last working version of Home Assistant Core?

core-2021.8.8

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Google Nest

Link to integration documentation on our website

https://www.home-assistant.io/integrations/nest/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: components/nest/__init__.py:166
First occurred: 8:51:45 PM (1 occurrences)
Last logged: 8:51:45 PM

Error setting up entry Nest for nest
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/config_entries.py", line 304, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/nest/__init__.py", line 166, in async_setup_entry
    await subscriber.start_async()
  File "/srv/homeassistant/lib/python3.9/site-packages/google_nest_sdm/google_nest_subscriber.py", line 172, in start_async
    await self._subscriber_factory.async_new_subscriber(
  File "/srv/homeassistant/lib/python3.9/site-packages/google_nest_sdm/google_nest_subscriber.py", line 80, in async_new_subscriber
    return await loop.run_in_executor(
  File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.9/site-packages/google_nest_sdm/google_nest_subscriber.py", line 101, in _new_subscriber
    subscriber = pubsub_v1.SubscriberClient(credentials=creds)
  File "/srv/homeassistant/lib/python3.9/site-packages/google/cloud/pubsub_v1/subscriber/client.py", line 102, in __init__
    channel = grpc_helpers.create_channel(
  File "/srv/homeassistant/lib/python3.9/site-packages/google/api_core/grpc_helpers.py", line 306, in create_channel
    composite_credentials = _create_composite_credentials(
  File "/srv/homeassistant/lib/python3.9/site-packages/google/api_core/grpc_helpers.py", line 236, in _create_composite_credentials
    credentials = google.auth.credentials.with_scopes_if_required(
TypeError: with_scopes_if_required() got an unexpected keyword argument 'default_scopes'

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions