mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 10:13:52 -05:00
Update RestrictedPython to 8.5 (#179554)
This commit is contained in:
@@ -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"]
|
||||
}
|
||||
|
||||
Generated
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user