158 files

This commit is contained in:
Home Assistant Version Control
2026-08-11 11:40:58 +00:00
parent c6db6ca558
commit 5388267a3e
158 changed files with 11840 additions and 698 deletions
@@ -201,6 +201,14 @@ async def async_update_task_simple(
for key in _UPDATABLE_FLAT_FIELDS:
if key in updates and updates[key] is not None:
task[key] = updates[key]
# #128: assignment via the update_task service. "" clears (a user id is
# never empty); None keeps the field untouched like everywhere else here.
ruid = updates.get("responsible_user_id")
if ruid is not None:
if ruid:
task["responsible_user_id"] = ruid
else:
task.pop("responsible_user_id", None)
if isinstance(task.get("name"), str):
task["name"] = task["name"].strip()
if not task["name"]: