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

View file

@ -657,7 +657,7 @@ python-wink==1.2.3
pytrackr==0.0.5 pytrackr==0.0.5
# homeassistant.components.tradfri # homeassistant.components.tradfri
pytradfri==0.4 pytradfri==1.0
# homeassistant.components.device_tracker.unifi # homeassistant.components.device_tracker.unifi
pyunifi==2.0 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 git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git
cd libcoap cd libcoap
./autogen.sh ./autogen.sh
./configure --disable-documentation --disable-shared ./configure --disable-documentation --disable-shared --without-debug CFLAGS="-D COAP_DEBUG_FD=stderr"
make make
make install make install