Update RestrictedPython to 8.5 (#179554)

This commit is contained in:
Marc Mueller
2026-08-20 09:27:39 +02:00
committed by GitHub
parent ddefcf2608
commit 62c8b01066
3 changed files with 6 additions and 3 deletions
@@ -9,7 +9,7 @@ import operator
import os
import time
import types
from typing import Any
from typing import TYPE_CHECKING, Any
from RestrictedPython import (
compile_restricted_exec,
@@ -230,6 +230,9 @@ def execute(
"Warning loading script %s: %s", filename, ", ".join(compiled.warnings)
)
if TYPE_CHECKING:
assert compiled.code is not None
def protected_getattr(obj: object, name: str, default: Any = None) -> Any:
"""Restricted method to get attributes."""
if name.startswith("async_"):
@@ -5,5 +5,5 @@
"documentation": "https://www.home-assistant.io/integrations/python_script",
"loggers": ["RestrictedPython"],
"quality_scale": "internal",
"requirements": ["RestrictedPython==8.1"]
"requirements": ["RestrictedPython==8.5"]
}
+1 -1
View File
@@ -108,7 +108,7 @@ PyXiaomiGateway==0.14.3
RachioPy==1.1.0
# homeassistant.components.python_script
RestrictedPython==8.1
RestrictedPython==8.5
# homeassistant.components.remember_the_milk
RtmAPI==0.7.2