mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-10 19:06:36 +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");
|
fireEvent(this, "ha-refresh-cloud-status");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
alert(
|
||||||
|
`Unable to ${toggle.checked ? "enable" : "disable"} report state. ${
|
||||||
|
err.message
|
||||||
|
}`
|
||||||
|
);
|
||||||
toggle.checked = !toggle.checked;
|
toggle.checked = !toggle.checked;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user