1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 12:49:19 +00:00

Change event logbook message (#17449)

This commit is contained in:
Bram Kragten
2023-08-01 10:44:15 +02:00
committed by GitHub
parent ece676e3dc
commit 41643b20e7
2 changed files with 5 additions and 0 deletions

View File

@@ -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,

View File

@@ -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"
}
},