Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/helpers/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def log_missing(self, missing_entities: set[str]) -> None:
return

_LOGGER.warning(
"Unable to find referenced %s or it is/they are currently not available",
"Referenced %s are missing or not currently available",
", ".join(parts),
)

Expand Down
12 changes: 6 additions & 6 deletions tests/helpers/test_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1238,9 +1238,9 @@ async def test_entity_service_call_warn_referenced(
)
await service.entity_service_call(hass, {}, "", call)
assert (
"Unable to find referenced areas non-existent-area, devices"
" non-existent-device, entities non.existent" in caplog.text
)
"Referenced areas non-existent-area, devices non-existent-device, "
"entities non.existent are missing or not currently available"
) in caplog.text


async def test_async_extract_entities_warn_referenced(
Expand All @@ -1259,9 +1259,9 @@ async def test_async_extract_entities_warn_referenced(
extracted = await service.async_extract_entities(hass, {}, call)
assert len(extracted) == 0
assert (
"Unable to find referenced areas non-existent-area, devices"
" non-existent-device, entities non.existent" in caplog.text
)
"Referenced areas non-existent-area, devices non-existent-device, "
"entities non.existent are missing or not currently available"
) in caplog.text


async def test_async_extract_config_entry_ids(hass: HomeAssistant) -> None:
Expand Down