mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 10:29:27 +00:00
Fix unnecessary-return-none in homematic (#122948)
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user