Remove backwards compatibility from ConditionProtocol

This commit is contained in:
Erik
2025-06-24 07:49:18 +02:00
parent 38e55bb988
commit 0c9d02a5c1

View File

@ -120,16 +120,6 @@ class ConditionProtocol(Protocol):
) -> dict[str, type[Condition]]:
"""Return the conditions provided by this integration."""
async def async_validate_condition_config(
self, hass: HomeAssistant, config: ConfigType
) -> ConfigType:
"""Validate config."""
def async_condition_from_config(
self, hass: HomeAssistant, config: ConfigType
) -> ConditionCheckerType:
"""Evaluate state based on configuration."""
type ConditionCheckerType = Callable[[HomeAssistant, TemplateVarsType], bool | None]