Return instead of trhow (#9094)

This commit is contained in:
Joakim Sørensen 2021-05-04 23:03:57 +02:00 committed by GitHub
parent cc76ccc3c9
commit d408e8653c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ export const connectionMixin = <T extends Constructor<HassBaseEl>>(
err.error?.code === ERR_CONNECTION_LOST && err.error?.code === ERR_CONNECTION_LOST &&
serviceCallWillDisconnect(domain, service) serviceCallWillDisconnect(domain, service)
) { ) {
throw err; return { context: { id: "" } };
} }
if (__DEV__) { if (__DEV__) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console