Upgrade pytradfri to 1.0 (#7163)

This commit is contained in:
Paulus Schoutsen 2017-04-18 20:11:18 -07:00 committed by GitHub
parent e4bbbe20dd
commit 4becfb66e3
3 changed files with 5 additions and 5 deletions

View file

@ -21,7 +21,7 @@ DOMAIN = 'tradfri'
CONFIG_FILE = 'tradfri.conf'
KEY_CONFIG = 'tradfri_configuring'
KEY_GATEWAY = 'tradfri_gateway'
REQUIREMENTS = ['pytradfri==0.4']
REQUIREMENTS = ['pytradfri==1.0']
CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({
@ -100,10 +100,10 @@ def async_setup(hass, config):
@asyncio.coroutine
def _setup_gateway(hass, hass_config, host, key):
"""Create a gateway."""
from pytradfri import cli_api_factory, Gateway, RequestError
from pytradfri import cli_api_factory, Gateway, RequestError, retry_timeout
try:
api = cli_api_factory(host, key)
api = retry_timeout(cli_api_factory(host, key))
except RequestError:
return False

View file

@ -657,7 +657,7 @@ python-wink==1.2.3
pytrackr==0.0.5
# homeassistant.components.tradfri
pytradfri==0.4
pytradfri==1.0
# homeassistant.components.device_tracker.unifi
pyunifi==2.0

View file

@ -9,6 +9,6 @@ apt-get install -y --no-install-recommends git autoconf automake libtool
git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git
cd libcoap
./autogen.sh
./configure --disable-documentation --disable-shared
./configure --disable-documentation --disable-shared --without-debug CFLAGS="-D COAP_DEBUG_FD=stderr"
make
make install