checkConfig method
Trigger a check of configuration.yaml.
No additional data needs to be passed in with this request. Needs config integration enabled.
Implementation
Future<(HaCheckConfig?, HaFailure?)> checkConfig() async {
const endpoint = '/api/config/core/check_config';
final response =
await sl.get<HttpClient>().post(url + endpoint, _headers, null);
return response.success
? (HaCheckConfig.fromJson(jsonDecode(response.dataStr)), null)
: (null, HaFailure(message: response.dataStr));
}