Improve string formatting v6 (#33698)
This commit is contained in:
1 parent
d7e3b0b755
commit
eae21be5b9
43 files changed
+81
-87
No files matched your search
@@ -203,6 +203,6 @@ class NestTempSensor(NestSensorDevice):
|
||||
|
||||
if isinstance(temp, tuple):
|
||||
low, high = temp
|
||||
self._state = "{}-{}".format(int(low), int(high))
|
||||
self._state = f"{int(low)}-{int(high)}"
|
||||
else:
|
||||
self._state = round(temp, 1)
|
||||
Reference in new issue
Block a user