221 files

This commit is contained in:
Home Assistant Version Control
2026-10-10 15:24:58 +00:00
parent ae12b88c7d
commit bfafb4c28a
221 changed files with 73725 additions and 3277 deletions
@@ -21,5 +21,7 @@ class SpookService(AbstractSpookService):
async def async_handle_service(self, _: ServiceCall) -> None:
"""Handle the service call."""
msg = "Spooked!"
raise HomeAssistantError(msg)
raise HomeAssistantError(
translation_domain=DOMAIN,
translation_key="spooked",
)
@@ -23,5 +23,7 @@ class SpookService(AbstractSpookService):
async def async_handle_service(self, _: ServiceCall) -> None:
"""Handle the service call."""
if random.choice([True, False]): # noqa: S311
msg = "Spooked!"
raise HomeAssistantError(msg)
raise HomeAssistantError(
translation_domain=DOMAIN,
translation_key="spooked",
)