Fix blocking I/O in the event loop when loading timezones (#117721)
This commit is contained in:
parent
0293315b23
commit
5a609c34bb
98 changed files with 294 additions and 217 deletions
|
@ -45,7 +45,7 @@ LITTER_ROBOT_3_SLEEP_START = RobotTimeEntityDescription[LitterRobot3](
|
|||
entity_category=EntityCategory.CONFIG,
|
||||
value_fn=lambda robot: _as_local_time(robot.sleep_mode_start_time),
|
||||
set_fn=lambda robot, value: robot.set_sleep_mode(
|
||||
robot.sleep_mode_enabled, value.replace(tzinfo=dt_util.DEFAULT_TIME_ZONE)
|
||||
robot.sleep_mode_enabled, value.replace(tzinfo=dt_util.get_default_time_zone())
|
||||
),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue