Fix nest to stop doing asyncio in a property (#42312)

This upgrades to the latest vesion of python-google-nest-sdm that
had bug fixes to stop doing asyncio in a property.
pull/42322/head
Allen Porter 2020-10-24 14:33:52 -07:00 committed by GitHub
parent 5db1474099
commit 5e9de88f4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 6 deletions

View File

@ -6,7 +6,7 @@
"documentation": "https://www.home-assistant.io/integrations/nest", "documentation": "https://www.home-assistant.io/integrations/nest",
"requirements": [ "requirements": [
"python-nest==4.1.0", "python-nest==4.1.0",
"google-nest-sdm==0.1.6" "google-nest-sdm==0.1.9"
], ],
"codeowners": [ "codeowners": [
"@awarecan", "@awarecan",

View File

@ -32,7 +32,7 @@ async def async_setup_sdm_entry(
"""Set up the sensors.""" """Set up the sensors."""
subscriber = hass.data[DOMAIN][entry.entry_id] subscriber = hass.data[DOMAIN][entry.entry_id]
device_manager = await subscriber.async_device_manager device_manager = await subscriber.async_get_device_manager()
# Fetch initial data so we have data when entities subscribe. # Fetch initial data so we have data when entities subscribe.

View File

@ -681,7 +681,7 @@ google-cloud-pubsub==0.39.1
google-cloud-texttospeech==0.4.0 google-cloud-texttospeech==0.4.0
# homeassistant.components.nest # homeassistant.components.nest
google-nest-sdm==0.1.6 google-nest-sdm==0.1.9
# homeassistant.components.google_travel_time # homeassistant.components.google_travel_time
googlemaps==2.5.1 googlemaps==2.5.1

View File

@ -349,7 +349,7 @@ google-api-python-client==1.6.4
google-cloud-pubsub==0.39.1 google-cloud-pubsub==0.39.1
# homeassistant.components.nest # homeassistant.components.nest
google-nest-sdm==0.1.6 google-nest-sdm==0.1.9
# homeassistant.components.gree # homeassistant.components.gree
greeclimate==0.9.0 greeclimate==0.9.0

View File

@ -79,8 +79,7 @@ class FakeSubscriber(GoogleNestSubscriber):
"""Return the fake device manager.""" """Return the fake device manager."""
return self._device_manager return self._device_manager
@property async def async_get_device_manager(self) -> DeviceManager:
async def async_device_manager(self) -> DeviceManager:
"""Return the fake device manager.""" """Return the fake device manager."""
return self._device_manager return self._device_manager