mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Fix notification error when calling service (#17255)
This commit is contained in:
parent
228b75ae83
commit
bffdfcf61c
@ -123,9 +123,10 @@ export const connectionMixin = <T extends Constructor<HassBaseEl>>(
|
|||||||
`${domain}/${service}`
|
`${domain}/${service}`
|
||||||
) +
|
) +
|
||||||
` ${
|
` ${
|
||||||
err.message || err.error?.code === ERR_CONNECTION_LOST
|
err.message ||
|
||||||
|
(err.error?.code === ERR_CONNECTION_LOST
|
||||||
? "connection lost"
|
? "connection lost"
|
||||||
: "unknown error"
|
: "unknown error")
|
||||||
}`;
|
}`;
|
||||||
fireEvent(this as any, "hass-notification", { message });
|
fireEvent(this as any, "hass-notification", { message });
|
||||||
throw err;
|
throw err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user