Compare commits

...

2 Commits

Author SHA1 Message Date
Erik Montnemery 1684062084 Merge branch 'dev' into check_remaining_legacy_condition_use 2026-05-12 16:28:26 +02:00
Erik 3b9757a6ac Check if there are remaining users of legacy condition API 2026-05-07 11:27:05 +02:00
+6 -2
View File
@@ -304,7 +304,9 @@ class ConditionChecker(abc.ABC):
`hass` parameter is for backwards compatibility only and is always ignored.
"""
return self.async_check(variables=variables)
raise RuntimeError(
"ConditionsChecker should not be called directly, use async_check instead"
)
def __del__(self) -> None:
"""Clean up when the checker is deleted."""
@@ -1809,7 +1811,9 @@ class ConditionsChecker:
def __call__(self, variables: TemplateVarsType = None) -> bool:
"""Check all conditions."""
return self.async_check(variables=variables)
raise RuntimeError(
"ConditionsChecker should not be called directly, use async_check instead"
)
def __del__(self) -> None:
"""Clean up when the checker is deleted."""