Better timeout handling in samsungtv integration (#38759)

* handle PlatformNotReady

* set timeout in bridge

* set timeout in test

* Revert "handle PlatformNotReady"

This reverts commit 118ee06ba016f88abdf767efdf4ef1eacb4e5caa.
This commit is contained in:
escoand 2020-08-15 20:25:37 +02:00 committed by GitHub
parent 92adb5d58a
commit 9c6b019ca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ class SamsungTVWSBridge(SamsungTVBridge):
host=self.host, host=self.host,
port=self.port, port=self.port,
token=self.token, token=self.token,
timeout=10, timeout=8,
name=VALUE_CONF_NAME, name=VALUE_CONF_NAME,
) )
self._remote.open() self._remote.open()

View File

@ -97,7 +97,7 @@ MOCK_CALLS_ENTRY_WS = {
"host": "fake", "host": "fake",
"name": "HomeAssistant", "name": "HomeAssistant",
"port": 8001, "port": 8001,
"timeout": 10, "timeout": 8,
"token": "abcde", "token": "abcde",
} }