forked from home-assistant/core
Add 5 second timeout to Kodi connections (#2683)
This commit is contained in:
committed by
Paulus Schoutsen
parent
74f284d2d7
commit
ba72166333
@@ -53,7 +53,8 @@ class KodiDevice(MediaPlayerDevice):
|
|||||||
self._url = url
|
self._url = url
|
||||||
self._server = jsonrpc_requests.Server(
|
self._server = jsonrpc_requests.Server(
|
||||||
'{}/jsonrpc'.format(self._url),
|
'{}/jsonrpc'.format(self._url),
|
||||||
auth=auth)
|
auth=auth,
|
||||||
|
timeout=5)
|
||||||
self._turn_off_action = turn_off_action
|
self._turn_off_action = turn_off_action
|
||||||
self._players = list()
|
self._players = list()
|
||||||
self._properties = None
|
self._properties = None
|
||||||
|
Reference in New Issue
Block a user