Use assignment expressions 13 (#57938)
This commit is contained in:
parent
c979e89b70
commit
1bcf39517a
20 changed files with 31 additions and 66 deletions
|
@ -131,7 +131,6 @@ class ProliphixThermostat(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
|
||||
self._pdp.setback = temperature
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue