mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Change event logbook message (#17449)
This commit is contained in:
parent
ece676e3dc
commit
41643b20e7
@ -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,
|
||||
|
@ -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"
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user