From 5e9de88f4b4a66e0e3f7b318a95dd70080d5ece0 Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Sat, 24 Oct 2020 14:33:52 -0700 Subject: [PATCH] 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. --- homeassistant/components/nest/manifest.json | 2 +- homeassistant/components/nest/sensor_sdm.py | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- tests/components/nest/sensor_sdm_test.py | 3 +-- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/nest/manifest.json b/homeassistant/components/nest/manifest.json index 0686b5add1d..ffbe35f5c1c 100644 --- a/homeassistant/components/nest/manifest.json +++ b/homeassistant/components/nest/manifest.json @@ -6,7 +6,7 @@ "documentation": "https://www.home-assistant.io/integrations/nest", "requirements": [ "python-nest==4.1.0", - "google-nest-sdm==0.1.6" + "google-nest-sdm==0.1.9" ], "codeowners": [ "@awarecan", diff --git a/homeassistant/components/nest/sensor_sdm.py b/homeassistant/components/nest/sensor_sdm.py index 6c4e37e57b3..7939731aacc 100644 --- a/homeassistant/components/nest/sensor_sdm.py +++ b/homeassistant/components/nest/sensor_sdm.py @@ -32,7 +32,7 @@ async def async_setup_sdm_entry( """Set up the sensors.""" 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. diff --git a/requirements_all.txt b/requirements_all.txt index 9ff4f764fe7..9ed9c4f83f5 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -681,7 +681,7 @@ google-cloud-pubsub==0.39.1 google-cloud-texttospeech==0.4.0 # homeassistant.components.nest -google-nest-sdm==0.1.6 +google-nest-sdm==0.1.9 # homeassistant.components.google_travel_time googlemaps==2.5.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 48c3d4edd94..fcfb3166f02 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -349,7 +349,7 @@ google-api-python-client==1.6.4 google-cloud-pubsub==0.39.1 # homeassistant.components.nest -google-nest-sdm==0.1.6 +google-nest-sdm==0.1.9 # homeassistant.components.gree greeclimate==0.9.0 diff --git a/tests/components/nest/sensor_sdm_test.py b/tests/components/nest/sensor_sdm_test.py index ab2cae3d9f3..a0595f1f9af 100644 --- a/tests/components/nest/sensor_sdm_test.py +++ b/tests/components/nest/sensor_sdm_test.py @@ -79,8 +79,7 @@ class FakeSubscriber(GoogleNestSubscriber): """Return the fake device manager.""" return self._device_manager - @property - async def async_device_manager(self) -> DeviceManager: + async def async_get_device_manager(self) -> DeviceManager: """Return the fake device manager.""" return self._device_manager