Update google-nest-sdm to 3.0.2 (#99175)
* Update google-nest-sdm to 3.0.2 * Fix device typing * Update homeassistant/components/nest/device_info.py Co-authored-by: jan iversen <jancasacondor@gmail.com> --------- Co-authored-by: jan iversen <jancasacondor@gmail.com>
This commit is contained in:
parent
2dab9eaf86
commit
1539853c0a
6 changed files with 10 additions and 8 deletions
|
@ -69,7 +69,7 @@ class NestDeviceInfo:
|
|||
# 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:
|
||||
|
|
|
@ -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"]
|
||||
}
|
||||
|
|
|
@ -897,7 +897,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
|
||||
|
|
|
@ -707,7 +707,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
|
||||
|
|
|
@ -60,7 +60,7 @@ CAMERA_API_DATA = {
|
|||
"type": "sdm.devices.types.CAMERA",
|
||||
"traits": {
|
||||
"sdm.devices.traits.CameraLiveStream": {
|
||||
"videoCodecs": "H264",
|
||||
"videoCodecs": ["H264"],
|
||||
"supportedProtocols": ["RTSP"],
|
||||
},
|
||||
},
|
||||
|
@ -71,7 +71,7 @@ CAMERA_DIAGNOSTIC_DATA = {
|
|||
"name": "**REDACTED**",
|
||||
"traits": {
|
||||
"sdm.devices.traits.CameraLiveStream": {
|
||||
"videoCodecs": "H264",
|
||||
"videoCodecs": ["H264"],
|
||||
"supportedProtocols": ["RTSP"],
|
||||
},
|
||||
},
|
||||
|
|
|
@ -231,7 +231,9 @@ def create_battery_event_data(
|
|||
(
|
||||
"sdm.devices.types.THERMOSTAT",
|
||||
{
|
||||
"sdm.devices.traits.Temperature": {},
|
||||
"sdm.devices.traits.Temperature": {
|
||||
"ambientTemperatureCelsius": 22.0,
|
||||
},
|
||||
},
|
||||
)
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue