Repository navigation
[Backport release-26.05] home-assistant: backport pyjwt 2.13.0 support - #535033
Conversation
a981c90 to
880079d
Compare
There was a problem hiding this comment.
This report is automatically generated by the PR / Check / cherry-pick CI workflow.
Some of the commits in this PR require the author's and reviewer's attention.
Sometimes it is not possible to cherry-pick exactly the same patch.
This most frequently happens when resolving merge conflicts.
The range-diff will help to review the resolution of conflicts.
If you need to merge this PR despite the warnings, please dismiss this review shortly before merging.
Warning
Difference between 0960784 and original adc70fc may warrant inspection.
Show diff
@@ Metadata
## Commit message ##
home-assistant: backport pyjwt 2.13.0 support
+ (cherry picked from commit adc70fc450ba544a10c35389f5071d5861feab6d)
+
## pkgs/servers/home-assistant/default.nix ##
@@ pkgs/servers/home-assistant/default.nix: python3Packages.buildPythonApplication rec {
- (replaceVars ./patches/ffmpeg-path.patch {
- ffmpeg = "${lib.getExe ffmpeg-headless}";
+ url = "https://github.com/home-assistant/core/commit/e796d9c46744097585bfada483108a55ae16344a.patch";
+ hash = "sha256-T0Nb6LcL/21WdUm8RmczhHaVX92n5O/rpMdpqDVQ2VU=";
})
+
+ # https://github.com/home-assistant/core/pull/172893
@@ pkgs/servers/home-assistant/default.nix: python3Packages.buildPythonApplication
## pkgs/servers/home-assistant/patches/pyjwt-2.13-compat.patch (new) ##
@@
+diff --git a/homeassistant/auth/__init__.py b/homeassistant/auth/__init__.py
-+index d4b86febd1d..0edd0edd69b 100644
++index e16c29ceaa8..8224aca0e43 100644
+--- a/homeassistant/auth/__init__.py
++++ b/homeassistant/auth/__init__.py
+@@ -656,6 +656,8 @@ class AuthManager:
@@ -673,7 +675,7 @@ class AuthManager:
+
+ if refresh_token is None or not refresh_token.user.is_active:
+diff --git a/homeassistant/components/html5/notify.py b/homeassistant/components/html5/notify.py
-+index 24b395748d8..3424749e86d 100644
++index c3ea03d01b9..98878696139 100644
+--- a/homeassistant/components/html5/notify.py
++++ b/homeassistant/components/html5/notify.py
+@@ -327,7 +327,7 @@ class HTML5PushCallbackView(HomeAssistantView):
+ if target_check.get(ATTR_TARGET) in self.registrations:
+ possible_target = self.registrations[target_check[ATTR_TARGET]]
+ key = possible_target["subscription"]["keys"]["auth"]
-+- with suppress(jwt.exceptions.DecodeError), warnings.catch_warnings():
-++ with suppress(jwt.exceptions.DecodeError, jwt.exceptions.InvalidKeyError), warnings.catch_warnings():
-+ warnings.simplefilter("ignore", InsecureKeyLengthWarning)
++- with suppress(jwt.exceptions.DecodeError):
+++ with suppress(jwt.exceptions.DecodeError, jwt.exceptions.InvalidKeyError):
+ return jwt.decode(token, key, algorithms=["ES256", "HS256"])
+
++ return self.json_message(
+diff --git a/tests/components/elmax/conftest.py b/tests/components/elmax/conftest.py
+index 02f01036996..c9c3f13e9e3 100644
+--- a/tests/components/elmax/conftest.py
Hint: The full diffs are also available in the runner logs with slightly better highlighting.
There was a problem hiding this comment.
The PR's base branch is set to release-26.05, but this PR causes 1121 rebuilds.
It is therefore considered a mass rebuild.
Please change the base branch to the right base branch for your changes (probably staging-26.05).
|
regression fix from staging-next-26.05
Fixes a regression from staging-next-26.05 and backports a patch to ignore a deprecation warning shown to endusers.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.