Use assignment expressions 30 (#58714)
This commit is contained in:
parent
7063c05127
commit
84618fa831
24 changed files with 33 additions and 77 deletions
|
@ -398,8 +398,7 @@ class TadoClimate(TadoZoneEntity, ClimateEntity):
|
|||
|
||||
def set_temperature(self, **kwargs):
|
||||
"""Set new target temperature."""
|
||||
temperature = kwargs.get(ATTR_TEMPERATURE)
|
||||
if temperature is None:
|
||||
if (temperature := kwargs.get(ATTR_TEMPERATURE)) is None:
|
||||
return
|
||||
|
||||
if self._current_tado_hvac_mode not in (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue