Skip to content

Commit

Permalink
fix: fix overwrite of websocket error
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Mar 30, 2020
1 parent bc2677d commit 71173b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/alexa_media/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,7 @@ async def ws_error_handler(message):
if message == "<class 'aiohttp.streams.EofStream'>":
hass.data[DATA_ALEXAMEDIA]["accounts"][email]["websocketerror"] = 5
_LOGGER.debug("%s: Immediate abort on EoFstream", hide_email(email))
return
hass.data[DATA_ALEXAMEDIA]["accounts"][email]["websocketerror"] = errors + 1

config = config_entry.data
Expand Down

0 comments on commit 71173b8

Please sign in to comment.