mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
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:
parent
27b1d448a3
commit
e96ac74b11
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user