Skip to content

Commit

Permalink
refactor: remove unused lock
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Feb 8, 2021
1 parent 3eb09ea commit 3ba2b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/alexa_media/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
"""
from asyncio import Lock, sleep
from asyncio import sleep
from collections import OrderedDict
import datetime
from datetime import timedelta
Expand Down Expand Up @@ -626,7 +626,7 @@ async def _test_login(self):
"expires_in": login.expires_in,
}
self.hass.data.setdefault(
DATA_ALEXAMEDIA, {"accounts": {}, "config_flows": {}, "lock": Lock()},
DATA_ALEXAMEDIA, {"accounts": {}, "config_flows": {}},
)
if existing_entry:
self.hass.config_entries.async_update_entry(
Expand Down

0 comments on commit 3ba2b6f

Please sign in to comment.