diff --git a/homeassistant/components/nest/device_info.py b/homeassistant/components/nest/device_info.py index 1bdb60ee1b488..35e32ccf1bc98 100644 --- a/homeassistant/components/nest/device_info.py +++ b/homeassistant/components/nest/device_info.py @@ -69,7 +69,7 @@ def device_model(self) -> str | None: # The API intentionally returns minimal information about specific # devices, instead relying on traits, but we can infer a generic model # name based on the type - return DEVICE_TYPE_MAP.get(self._device.type) + return DEVICE_TYPE_MAP.get(self._device.type or "", None) @property def suggested_area(self) -> str | None: diff --git a/homeassistant/components/nest/manifest.json b/homeassistant/components/nest/manifest.json index 54bc44a09b363..bf24fc4a4e9e8 100644 --- a/homeassistant/components/nest/manifest.json +++ b/homeassistant/components/nest/manifest.json @@ -18,7 +18,7 @@ ], "documentation": "https://www.home-assistant.io/integrations/nest", "iot_class": "cloud_push", - "loggers": ["google_nest_sdm", "nest"], + "loggers": ["google_nest_sdm"], "quality_scale": "platinum", - "requirements": ["google-nest-sdm==2.2.5"] + "requirements": ["google-nest-sdm==3.0.2"] } diff --git a/requirements_all.txt b/requirements_all.txt index 65bf257a7eb26..43caff344fb00 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -891,7 +891,7 @@ google-cloud-texttospeech==2.12.3 google-generativeai==0.1.0 # homeassistant.components.nest -google-nest-sdm==2.2.5 +google-nest-sdm==3.0.2 # homeassistant.components.google_travel_time googlemaps==2.5.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index a46028263af49..50078db47e289 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -701,7 +701,7 @@ google-cloud-pubsub==2.13.11 google-generativeai==0.1.0 # homeassistant.components.nest -google-nest-sdm==2.2.5 +google-nest-sdm==3.0.2 # homeassistant.components.google_travel_time googlemaps==2.5.1 diff --git a/tests/components/nest/test_diagnostics.py b/tests/components/nest/test_diagnostics.py index 191253a2a9a0b..c9b5f2f0de1e1 100644 --- a/tests/components/nest/test_diagnostics.py +++ b/tests/components/nest/test_diagnostics.py @@ -60,7 +60,7 @@ "type": "sdm.devices.types.CAMERA", "traits": { "sdm.devices.traits.CameraLiveStream": { - "videoCodecs": "H264", + "videoCodecs": ["H264"], "supportedProtocols": ["RTSP"], }, }, @@ -71,7 +71,7 @@ "name": "**REDACTED**", "traits": { "sdm.devices.traits.CameraLiveStream": { - "videoCodecs": "H264", + "videoCodecs": ["H264"], "supportedProtocols": ["RTSP"], }, }, diff --git a/tests/components/nest/test_media_source.py b/tests/components/nest/test_media_source.py index 6c827e7616349..a1c627995856e 100644 --- a/tests/components/nest/test_media_source.py +++ b/tests/components/nest/test_media_source.py @@ -231,7 +231,9 @@ def create_battery_event_data( ( "sdm.devices.types.THERMOSTAT", { - "sdm.devices.traits.Temperature": {}, + "sdm.devices.traits.Temperature": { + "ambientTemperatureCelsius": 22.0, + }, }, ) ],