mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Use system log WS API (#11361)
This commit is contained in:
parent
9ef743a695
commit
dbb5bf7550
@ -14,7 +14,7 @@ export interface LoggedError {
|
||||
}
|
||||
|
||||
export const fetchSystemLog = (hass: HomeAssistant) =>
|
||||
hass.callApi<LoggedError[]>("GET", "error/all");
|
||||
hass.callWS<LoggedError[]>({ type: "system_log/list" });
|
||||
|
||||
export const getLoggedErrorIntegration = (item: LoggedError) => {
|
||||
// Try to derive from logger name
|
||||
|
Loading…
x
Reference in New Issue
Block a user