From dbb5bf7550388cde0184f6f8252eda8115954abf Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 18 Jan 2022 14:10:18 -0800 Subject: [PATCH] Use system log WS API (#11361) --- src/data/system_log.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/system_log.ts b/src/data/system_log.ts index f2acb5f82b..ced7085658 100644 --- a/src/data/system_log.ts +++ b/src/data/system_log.ts @@ -14,7 +14,7 @@ export interface LoggedError { } export const fetchSystemLog = (hass: HomeAssistant) => - hass.callApi("GET", "error/all"); + hass.callWS({ type: "system_log/list" }); export const getLoggedErrorIntegration = (item: LoggedError) => { // Try to derive from logger name