diff --git a/src/data/logbook.ts b/src/data/logbook.ts index d6528ab525d3..978f611c7141 100644 --- a/src/data/logbook.ts +++ b/src/data/logbook.ts @@ -345,6 +345,10 @@ export const localizeStateMessage = ( break; case "event": { + return localize(`${LOGBOOK_LOCALIZE_PATH}.detected_event_no_type`); + + // TODO: This is not working yet, as we don't get historic attribute values + const event_type = computeAttributeValueDisplay( hass!.localize, stateObj, diff --git a/src/translations/en.json b/src/translations/en.json index 8834f0583e8b..e330d356bdfd 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -362,6 +362,7 @@ "detected_tampering": "detected tampering", "cleared_tampering": "cleared tampering", "detected_event": "{event_type} event detected", + "detected_event_no_type": "detected an event", "detected_unknown_event": "detected an unknown event" } },