Use assignment expressions 13 (#57938)

This commit is contained in:
Marc Mueller 2021-10-21 08:27:42 +02:00 committed by GitHub
parent c979e89b70
commit 1bcf39517a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 31 additions and 66 deletions

View file

@ -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