Bump to google-nest-sdm to 4.0.4 (#117982)

This commit is contained in:
Allen Porter 2024-05-23 11:27:48 -07:00 committed by GitHub
parent ef138eb976
commit 978fe2d7b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 48 additions and 38 deletions

View file

@ -10,7 +10,6 @@ from google_nest_sdm.device_traits import FanTrait, TemperatureTrait
from google_nest_sdm.exceptions import ApiException
from google_nest_sdm.thermostat_traits import (
ThermostatEcoTrait,
ThermostatHeatCoolTrait,
ThermostatHvacTrait,
ThermostatModeTrait,
ThermostatTemperatureSetpointTrait,
@ -173,7 +172,7 @@ class ThermostatEntity(ClimateEntity):
@property
def _target_temperature_trait(
self,
) -> ThermostatHeatCoolTrait | None:
) -> ThermostatEcoTrait | ThermostatTemperatureSetpointTrait | None:
"""Return the correct trait with a target temp depending on mode."""
if (
self.preset_mode == PRESET_ECO