mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 10:26:35 +00:00
Better error report on Alexa (#3302)
This commit is contained in:
parent
483f82e554
commit
999c243c94
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user