Fix unnecessary-return-none in homematic (#122948)

This commit is contained in:
epenet 2024-07-31 20:42:42 +02:00 committed by GitHub
parent 8de0e4ca7c
commit c0fe65fa60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,7 +141,7 @@ class HMThermostat(HMDevice, ClimateEntity):
def set_temperature(self, **kwargs: Any) -> None:
"""Set new target temperature."""
if (temperature := kwargs.get(ATTR_TEMPERATURE)) is None:
return None
return
self._hmdevice.writeNodeData(self._state, float(temperature))