mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +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}`
|
||||
) +
|
||||
` ${
|
||||
err.message || err.error?.code === ERR_CONNECTION_LOST
|
||||
err.message ||
|
||||
(err.error?.code === ERR_CONNECTION_LOST
|
||||
? "connection lost"
|
||||
: "unknown error"
|
||||
: "unknown error")
|
||||
}`;
|
||||
fireEvent(this as any, "hass-notification", { message });
|
||||
throw err;
|
||||
|
Loading…
x
Reference in New Issue
Block a user