Skip to content

Commit 89a057b

Browse files
committed
fix: add additional catches for login errors
Closes #461
1 parent a8bdbf4 commit 89a057b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

custom_components/alexa_media/media_player.py

+1
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ def state(self):
529529
return STATE_IDLE
530530
return STATE_STANDBY
531531

532+
@_catch_login_errors
532533
async def async_update(self):
533534
"""Get the latest details on a media player.
534535

custom_components/alexa_media/switch.py

+1
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ def should_poll(self):
224224
return not (self.hass.data[DATA_ALEXAMEDIA]
225225
['accounts'][self._account]['websocket'])
226226

227+
@_catch_login_errors
227228
async def async_update(self):
228229
"""Update state."""
229230
try:

0 commit comments

Comments
 (0)