Use assignment expressions 19 (#57968)
This commit is contained in:
parent
786e1f9b6a
commit
ff853b2d53
23 changed files with 24 additions and 51 deletions
|
@ -262,8 +262,7 @@ class ViCareClimate(ClimateEntity):
|
|||
|
||||
def set_temperature(self, **kwargs):
|
||||
"""Set new target temperatures."""
|
||||
temp = kwargs.get(ATTR_TEMPERATURE)
|
||||
if temp is not None:
|
||||
if (temp := kwargs.get(ATTR_TEMPERATURE)) is not None:
|
||||
self._api.setProgramTemperature(self._current_program, temp)
|
||||
self._target_temperature = temp
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue