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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"
}
},