getErrorLog method
Retrieve all errors logged during the current session of Home Assistant as a plaintext response.
Implementation
Future<(String?, HaFailure?)> getErrorLog() async {
const endpoint = '/api/error_log';
final response = await sl.get<HttpClient>().get(url + endpoint, _headers);
return response.success
? (response.dataStr, null)
: (null, HaFailure(message: response.dataStr));
}