mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 10:59:50 +00:00
Refactor dev-info page (#2624)
* Refactor dev-info page * What * Fix custom UI check * Apply suggestions from code review Co-Authored-By: balloob <paulus@home-assistant.io> * Apply suggestions from code review Co-Authored-By: balloob <paulus@home-assistant.io> * Address comments * TSC * Apply suggestions from code review Co-Authored-By: balloob <paulus@home-assistant.io> * TSC
This commit is contained in:
13
src/data/system_log.ts
Normal file
13
src/data/system_log.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { HomeAssistant } from "../types";
|
||||
|
||||
export interface LoggedError {
|
||||
message: string;
|
||||
level: string;
|
||||
source: string;
|
||||
// unix timestamp in seconds
|
||||
timestamp: number;
|
||||
exception: string;
|
||||
}
|
||||
|
||||
export const fetchSystemLog = (hass: HomeAssistant) =>
|
||||
hass.callApi<LoggedError[]>("GET", "error/all");
|
||||
Reference in New Issue
Block a user