mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Pylint cleanups (#15626)
* Pylint 2 no-else-return fixes * Remove unneeded abstract-class-not-used pylint disable
This commit is contained in:
committed by
Paulus Schoutsen
parent
a38c0d6d15
commit
b7c336a687
@@ -29,6 +29,6 @@ def convert(temperature: float, from_unit: str, to_unit: str,
|
||||
|
||||
if from_unit == to_unit:
|
||||
return temperature
|
||||
elif from_unit == TEMP_CELSIUS:
|
||||
if from_unit == TEMP_CELSIUS:
|
||||
return celsius_to_fahrenheit(temperature, interval)
|
||||
return fahrenheit_to_celsius(temperature, interval)
|
||||
|
||||
Reference in New Issue
Block a user