Skip to content

Commit

Permalink
Handle more close messages (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob authored Feb 14, 2022
1 parent 1e87462 commit f37be8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hass_nabucasa/iot_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ async def _handle_connection(self):
await client.ping()
continue

if msg.type in (WSMsgType.CLOSED, WSMsgType.CLOSING):
if msg.type in (WSMsgType.CLOSE, WSMsgType.CLOSED, WSMsgType.CLOSING):
break

if msg.type == WSMsgType.ERROR:
Expand Down

0 comments on commit f37be8d

Please sign in to comment.