Skip to content

Commit

Permalink
Change event logbook message (#17449)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Aug 1, 2023
1 parent ece676e commit 41643b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/data/logbook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
Expand Down

0 comments on commit 41643b2

Please sign in to comment.