Fix issue with setting sleep mode during DST (#48001)
This commit is contained in:
parent
470b0b8b87
commit
bdc8a2878f
1 changed files with 8 additions and 5 deletions
|
@ -113,9 +113,12 @@ class LitterRobotEntity(CoordinatorEntity):
|
||||||
if parsed_time is None:
|
if parsed_time is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return time(
|
return (
|
||||||
hour=parsed_time.hour,
|
dt_util.start_of_local_day()
|
||||||
minute=parsed_time.minute,
|
.replace(
|
||||||
second=parsed_time.second,
|
hour=parsed_time.hour,
|
||||||
tzinfo=dt_util.DEFAULT_TIME_ZONE,
|
minute=parsed_time.minute,
|
||||||
|
second=parsed_time.second,
|
||||||
|
)
|
||||||
|
.timetz()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue