Use assignment expressions [A-I] (#66880)
This commit is contained in:
parent
6e49b0e122
commit
4f20a8023b
18 changed files with 20 additions and 43 deletions
|
@ -146,8 +146,7 @@ class LocalAdaxDevice(ClimateEntity):
|
|||
|
||||
async def async_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
|
||||
await self._adax_data_handler.set_target_temperature(temperature)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue