mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 04:36:36 +00:00
spesific
This commit is contained in:
parent
41934320c0
commit
70063031c5
@ -70,7 +70,12 @@ class HaCallServiceButton extends EventsMixin(PolymerElement) {
|
||||
eventData.success = true;
|
||||
},
|
||||
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
|
||||
el.$.progress.actionSuccess();
|
||||
eventData.success = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user