mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Added suppression info (#2790)
* added suppression info * added to type
This commit is contained in:
parent
1afb8f109e
commit
513eaea4f4
@ -7,6 +7,9 @@ export interface LoggedError {
|
||||
// unix timestamp in seconds
|
||||
timestamp: number;
|
||||
exception: string;
|
||||
count: number;
|
||||
// unix timestamp in seconds
|
||||
first_occured: number;
|
||||
}
|
||||
|
||||
export const fetchSystemLog = (hass: HomeAssistant) =>
|
||||
|
@ -68,6 +68,16 @@ class SystemLogCard extends LitElement {
|
||||
this.hass!.language
|
||||
)}
|
||||
${item.source} (${item.level})
|
||||
${item.count > 1
|
||||
? html`
|
||||
- message first occured at
|
||||
${formatLogTime(
|
||||
item.first_occured,
|
||||
this.hass!.language
|
||||
)}
|
||||
and shows up ${item.count} times
|
||||
`
|
||||
: html``}
|
||||
</div>
|
||||
</paper-item-body>
|
||||
</paper-item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user