Set Lyric hold time to use local time instead of utc (#48994)
parent
e1d4d65ac4
commit
3cd40ac79c
|
@ -2,7 +2,7 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from time import gmtime, strftime, time
|
||||
from time import localtime, strftime, time
|
||||
|
||||
from aiolyric.objects.device import LyricDevice
|
||||
from aiolyric.objects.location import LyricLocation
|
||||
|
@ -82,7 +82,7 @@ SCHEMA_HOLD_TIME = {
|
|||
vol.Required(ATTR_TIME_PERIOD, default="01:00:00"): vol.All(
|
||||
cv.time_period,
|
||||
cv.positive_timedelta,
|
||||
lambda td: strftime("%H:%M:%S", gmtime(time() + td.total_seconds())),
|
||||
lambda td: strftime("%H:%M:%S", localtime(time() + td.total_seconds())),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue