mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Reduce connection timeout to avoid config flow timeouts (#29172)
This commit is contained in:
parent
acc10c296e
commit
88441d5f68
@ -77,7 +77,7 @@ class PlexServer:
|
||||
self.server_choice = (
|
||||
self._server_name if self._server_name else available_servers[0][0]
|
||||
)
|
||||
self._plex_server = account.resource(self.server_choice).connect()
|
||||
self._plex_server = account.resource(self.server_choice).connect(timeout=10)
|
||||
|
||||
def _connect_with_url():
|
||||
session = None
|
||||
|
@ -30,7 +30,7 @@ class MockResource:
|
||||
self.provides = ["server"]
|
||||
self._mock_plex_server = MockPlexServer(index)
|
||||
|
||||
def connect(self):
|
||||
def connect(self, timeout):
|
||||
"""Mock the resource connect method."""
|
||||
return self._mock_plex_server
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user