This commit is contained in:
Home Assistant Version Control
2026-08-05 23:27:04 +00:00
parent 32a0b6c7f3
commit be7e50610a
23 changed files with 229 additions and 77 deletions
@@ -5379,8 +5379,14 @@ async def _server_entry_update_prep(
# auto-updating. Persisting it verbatim would read as an intentional
# override and disable auto-updates. This keeps the no-op check honest: a
# frame that normalizes to the stored value is unchanged, not a schedule.
# 'clear' (case-insensitive) is the empty string's mangling-proof
# alias (see ha_dev_manage_server): recognize it here too so raw WS
# callers and older servers cannot persist the literal word as a pip
# requirement that fails at install time.
pip_spec = msg["pip_spec"]
if str(pip_spec).strip() in ("", DEFAULT_PIP_SPEC):
if str(pip_spec).strip() in ("", DEFAULT_PIP_SPEC) or (
str(pip_spec).strip().lower() == "clear"
):
pip_spec = ""
delta[OPT_PIP_SPEC] = pip_spec
applying["pip_spec"] = pip_spec