From 2ed4f28a00626f8c912b76e3d9c9b16c42f79f44 Mon Sep 17 00:00:00 2001 From: Brett Adams Date: Sat, 31 Oct 2026 13:16:02 +1000 Subject: [PATCH] Cap tesla-protocol below 6 tesla-protocol 6.0.0 renames and retypes symbols the library uses, so a fresh install resolves to it and local Powerwall calls and listen_ui_desire raise at runtime. uv.lock holds 5.0.0, so CI does not see this. --- .claude/skills/tesla-protocol-bump/SKILL.md | 3 ++- pyproject.toml | 2 +- uv.lock | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.claude/skills/tesla-protocol-bump/SKILL.md b/.claude/skills/tesla-protocol-bump/SKILL.md index 6cf72ad..8f1fb9d 100644 --- a/.claude/skills/tesla-protocol-bump/SKILL.md +++ b/.claude/skills/tesla-protocol-bump/SKILL.md @@ -24,7 +24,8 @@ Home Assistant core installs this library under its own `protobuf` pin. ## 2. Bump the floors -1. In `pyproject.toml`, raise `tesla-protocol>=` to the target version. +1. In `pyproject.toml`, raise `tesla-protocol>=` to the target version, and raise + the `<` cap only after porting to that major version. 2. Set the `protobuf>=` floor in `pyproject.toml` to match what that `tesla-protocol` version requires (and not above the Home Assistant pin). 3. Run `uv lock`. CI uses `uv sync --locked`. diff --git a/pyproject.toml b/pyproject.toml index 6e6caa4..1f62ca1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ dependencies = [ "aiolimiter>=1", "cryptography>=43", "protobuf>=6.33.5", - "tesla-protocol>=5.0.0", + "tesla-protocol>=5.0.0,<6", "bleak>=0.22", "bleak-retry-connector>=3.9", ] diff --git a/uv.lock b/uv.lock index e8ebb70..43fd6e5 100644 --- a/uv.lock +++ b/uv.lock @@ -769,7 +769,7 @@ requires-dist = [ { name = "bleak-retry-connector", specifier = ">=3.9" }, { name = "cryptography", specifier = ">=43" }, { name = "protobuf", specifier = ">=6.33.5" }, - { name = "tesla-protocol", specifier = ">=5.0.0" }, + { name = "tesla-protocol", specifier = ">=5.0.0,<6" }, ] [package.metadata.requires-dev]