361 files

This commit is contained in:
Home Assistant Version Control committed 2026-10-06 17:11:43 +00:00
1 parent d2c5af43e3
commit bf886c9347
362 files changed
+22060 -1285

No files matched your search

@@ -16,13 +16,13 @@ from ....entity_filtering import (
async_find_services_in_sequence,
async_get_all_services,
)
from ....repairs import AbstractSpookEntityComponentUnknownReferencesRepair
from . import AbstractSpookAutomationReferencesRepair
if TYPE_CHECKING:
from typing import Any
class SpookRepair(AbstractSpookEntityComponentUnknownReferencesRepair):
class SpookRepair(AbstractSpookAutomationReferencesRepair):
"""Spook repair tries to find unknown referenced services in automations."""
domain = automation.DOMAIN
@@ -47,10 +47,6 @@ class SpookRepair(AbstractSpookEntityComponentUnknownReferencesRepair):
"""Cache known services for this inspection cycle."""
self._known_services = async_get_all_services(self.hass)
def _should_inspect_entity(self, entity: Any) -> bool:
"""Skip disabled automations."""
return entity.enabled
async def _async_compute_unknown_references(self, entity: Any) -> set[str]:
"""Return unknown services called by ``entity``."""
return async_filter_known_services(