mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Change event logbook message (#17449)
This commit is contained in:
parent
ece676e3dc
commit
41643b20e7
@ -345,6 +345,10 @@ export const localizeStateMessage = (
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "event": {
|
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(
|
const event_type = computeAttributeValueDisplay(
|
||||||
hass!.localize,
|
hass!.localize,
|
||||||
stateObj,
|
stateObj,
|
||||||
|
@ -362,6 +362,7 @@
|
|||||||
"detected_tampering": "detected tampering",
|
"detected_tampering": "detected tampering",
|
||||||
"cleared_tampering": "cleared tampering",
|
"cleared_tampering": "cleared tampering",
|
||||||
"detected_event": "{event_type} event detected",
|
"detected_event": "{event_type} event detected",
|
||||||
|
"detected_event_no_type": "detected an event",
|
||||||
"detected_unknown_event": "detected an unknown event"
|
"detected_unknown_event": "detected an unknown event"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user