Skip to content

Commit

Permalink
Fix authenticate argument (#278)
Browse files Browse the repository at this point in the history
Co-authored-by: jnxxx <>
  • Loading branch information
jnxxx authored Dec 13, 2023
1 parent 1baf10a commit 9f94f36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/nest_protect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ async def _async_subscribe_for_data(hass: HomeAssistant, entry: ConfigEntry, dat
if not entry_data.client.auth or entry_data.client.auth.is_expired():
LOGGER.debug("Subscriber: retrieving new Google access token")
auth = await entry_data.client.get_access_token()
entry_data.client.nest_session = await entry_data.client.authenticate(auth)
entry_data.client.nest_session = await entry_data.client.authenticate(
auth.access_token
)

# Subscribe to Google Nest subscribe endpoint
result = await entry_data.client.subscribe_for_data(
Expand Down

0 comments on commit 9f94f36

Please sign in to comment.