mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +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
|
hours -= 12
|
||||||
elif hours == 0:
|
elif hours == 0:
|
||||||
hours = 12
|
hours = 12
|
||||||
self._state = '{}:{} {}'.format(hours, minutes, setting)
|
self._state = '{}:{:02d} {}'.format(hours, minutes,
|
||||||
|
setting)
|
||||||
else:
|
else:
|
||||||
self._state = raw_state
|
self._state = raw_state
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user