Code styling tweaks to core utils & YAML loader (#85433)
Code styling tweaks to core utils
This commit is contained in:
parent
aa1c539683
commit
7adb8d5ddc
11 changed files with 68 additions and 51 deletions
|
@ -342,8 +342,8 @@ class TemperatureConverter(BaseUnitConverter):
|
|||
For converting an interval between two temperatures, please use
|
||||
`convert_interval` instead.
|
||||
"""
|
||||
# We cannot use the implementation from BaseUnitConverter here because the temperature
|
||||
# units do not use the same floor: 0°C, 0°F and 0K do not align
|
||||
# We cannot use the implementation from BaseUnitConverter here because the
|
||||
# temperature units do not use the same floor: 0°C, 0°F and 0K do not align
|
||||
if from_unit == to_unit:
|
||||
return value
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue