Added suppression info (#2790)

* added suppression info

* added to type
This commit is contained in:
Diogo Gomes 2019-02-19 21:53:50 +00:00 committed by Paulus Schoutsen
parent 1afb8f109e
commit 513eaea4f4
2 changed files with 13 additions and 0 deletions

View File

@ -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) =>

View File

@ -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>