Use system log WS API (#11361)

This commit is contained in:
Paulus Schoutsen 2022-01-18 14:10:18 -08:00 committed by GitHub
parent 9ef743a695
commit dbb5bf7550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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