Bump to google-nest-sdm to 4.0.4 (#117982)
This commit is contained in:
parent
ef138eb976
commit
978fe2d7b0
13 changed files with 48 additions and 38 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue