Better error report on Alexa (#3302)

This commit is contained in:
Paulus Schoutsen 2019-06-24 17:36:12 -07:00 committed by GitHub
parent 483f82e554
commit 999c243c94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,6 +115,11 @@ export class CloudAlexaPref extends LitElement {
});
fireEvent(this, "ha-refresh-cloud-status");
} catch (err) {
alert(
`Unable to ${toggle.checked ? "enable" : "disable"} report state. ${
err.message
}`
);
toggle.checked = !toggle.checked;
}
}