Skip to content

Commit

Permalink
fix: catch login error on guard init
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jan 5, 2021
1 parent 23f5aff commit d8c5399
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/alexa_media/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def __init__(self, login, media_players=None) -> None:
self._attrs: Dict[Text, Text] = {}
self._media_players = {} or media_players

@_catch_login_errors
async def init(self):
"""Initialize."""
try:
Expand Down

0 comments on commit d8c5399

Please sign in to comment.