Fix issue with setting sleep mode during DST (#48001)

This commit is contained in:
Nathan Spencer 2021-03-17 01:23:54 -06:00 committed by GitHub
parent 470b0b8b87
commit bdc8a2878f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()
) )