mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 21:17:47 +00:00
spesific
This commit is contained in:
parent
41934320c0
commit
70063031c5
@ -70,7 +70,12 @@ class HaCallServiceButton extends EventsMixin(PolymerElement) {
|
|||||||
eventData.success = true;
|
eventData.success = true;
|
||||||
},
|
},
|
||||||
function (err) {
|
function (err) {
|
||||||
if (err?.error?.message && err.error.message === "Connection lost") {
|
if (
|
||||||
|
el.domain === "homeassistant" &&
|
||||||
|
["restart", "stop"].includes(el.service) &&
|
||||||
|
err?.error?.message &&
|
||||||
|
err.error.message === "Connection lost"
|
||||||
|
) {
|
||||||
// We expect the service call to fail with 'Connection lost' when we restart or stop
|
// We expect the service call to fail with 'Connection lost' when we restart or stop
|
||||||
el.$.progress.actionSuccess();
|
el.$.progress.actionSuccess();
|
||||||
eventData.success = true;
|
eventData.success = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user