Fix formatting of minutes for sleep start in the fitbit sensor (#12664)
* fix formatting of minutes for sleep start https://github.com/home-assistant/home-assistant/issues/12594 * Update fitbit.py
This commit is contained in:
1 parent
27b1d448a3
commit
e96ac74b11
1 file changed
+2
-1
@@ -463,7 +463,8 @@ class FitbitSensor(Entity):
|
||||
hours -= 12
|
||||
elif hours == 0:
|
||||
hours = 12
|
||||
self._state = '{}:{} {}'.format(hours, minutes, setting)
|
||||
self._state = '{}:{:02d} {}'.format(hours, minutes,
|
||||
setting)
|
||||
else:
|
||||
self._state = raw_state
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user