Skip to content

Commit

Permalink
Return instead of trhow (#9094)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored May 4, 2021
1 parent cc76ccc commit d408e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/connection-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const connectionMixin = <T extends Constructor<HassBaseEl>>(
err.error?.code === ERR_CONNECTION_LOST &&
serviceCallWillDisconnect(domain, service)
) {
throw err;
return { context: { id: "" } };
}
if (__DEV__) {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit d408e86

Please sign in to comment.