mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Add 5 second timeout to Kodi connections (#2683)
This commit is contained in:
parent
74f284d2d7
commit
ba72166333
@ -53,7 +53,8 @@ class KodiDevice(MediaPlayerDevice):
|
||||
self._url = url
|
||||
self._server = jsonrpc_requests.Server(
|
||||
'{}/jsonrpc'.format(self._url),
|
||||
auth=auth)
|
||||
auth=auth,
|
||||
timeout=5)
|
||||
self._turn_off_action = turn_off_action
|
||||
self._players = list()
|
||||
self._properties = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user