When it pops up, you can't control, if you really have clicked on the delete button of the correct entity.Are you sure to delete this Device? This action can not be undone...
Are you sure to delete this Event? This action can not be undone...
Suggestion: If possible, include a variable to the text that shows the name and / or IDX of that entity. Maybe something like that:
The maximum length of the string could be limited as shown above in order to not spoil the layout of the text.Are you sure to delete the device "Temperature Livingro..."; IDX 123? This action can not be undone...