Update PyJWT to 2.15.1 (#182659)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: edenhaus <26537646+edenhaus@users.noreply.github.com>
Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2026-10-03 22:22:57 +02:00
committed by GitHub
co-authored by copilot-swe-agent[bot] edenhaus Simon Lamon
parent a88f859aae
commit b8954e0103
4 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ Pillow==12.3.0
probatio==0.13.0
propcache==0.5.4
psutil-home-assistant==0.0.1
PyJWT==2.13.0
PyJWT==2.15.1
pymicro-vad==1.0.1
PyNaCl==1.6.2
pyopenssl==26.4.0
+1 -1
View File
@@ -55,7 +55,7 @@ dependencies = [
"ifaddr==0.2.0",
"Jinja2==3.1.6",
"lru-dict==1.4.1",
"PyJWT==2.13.0",
"PyJWT==2.15.1",
# PyJWT has loose dependency. We want the latest one.
"cryptography==50.0.1",
"Pillow==12.3.0",
+1 -1
View File
@@ -41,7 +41,7 @@ Pillow==12.3.0
probatio==0.13.0
propcache==0.5.4
psutil-home-assistant==0.0.1
PyJWT==2.13.0
PyJWT==2.15.1
pymicro-vad==1.0.1
pyopenssl==26.4.0
pyspeex-noise==1.0.2
+8 -1
View File
@@ -1,5 +1,6 @@
"""August tests conftest."""
import base64
from unittest.mock import patch
import pytest
@@ -94,7 +95,13 @@ def load_reauth_jwt_fixture() -> str:
@pytest.fixture(name="migration_jwt")
def load_migration_jwt_fixture() -> str:
"""Load migration JWT fixture data (has email for legacy migration)."""
return load_fixture("migration_jwt", DOMAIN).strip("\n")
token = load_fixture("migration_jwt", DOMAIN).strip()
header, payload, signature = token.split(".")
signature_bytes = base64.urlsafe_b64decode(signature + "=" * (-len(signature) % 4))
canonical_signature = (
base64.urlsafe_b64encode(signature_bytes).rstrip(b"=").decode()
)
return f"{header}.{payload}.{canonical_signature}"
@pytest.fixture(name="reauth_jwt_wrong_account")