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:
awkwardDuck 2018-02-25 22:28:41 -05:00 committed by Paulus Schoutsen
parent 27b1d448a3
commit e96ac74b11

View File

@ -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: