[core] fix tests

This commit is contained in:
tobi-wan-kenobi 2020-05-08 21:01:45 +02:00
parent dd4294ecfa
commit 9ef826b5fd
3 changed files with 5 additions and 5 deletions

View file

@ -66,7 +66,7 @@ def astemperature(val, unit="metric"):
:return: temperature representation of the input value
:rtype: string
"""
return "{}°{}".format(int(value), __UNITS.get(unit, __UNITS["default"]))
return "{}°{}".format(int(val), __UNITS.get(unit, __UNITS["default"]))
def byte(val, fmt="{:.2f}"):