mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Upgrade pytradfri to 1.0 (#7163)
This commit is contained in:
parent
e4bbbe20dd
commit
4becfb66e3
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user