mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix unnecessary-return-none in homematic (#122948)
This commit is contained in:
parent
8de0e4ca7c
commit
c0fe65fa60
@ -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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user