Update pytradfri to 4.1.0 (#10521)
This commit is contained in:
parent
b784d80973
commit
cfb1853bbd
5 changed files with 7 additions and 15 deletions
|
@ -120,6 +120,7 @@ class TradfriGroup(Light):
|
||||||
@callback
|
@callback
|
||||||
def _async_start_observe(self, exc=None):
|
def _async_start_observe(self, exc=None):
|
||||||
"""Start observation of light."""
|
"""Start observation of light."""
|
||||||
|
# pylint: disable=import-error
|
||||||
from pytradfri.error import PyTradFriError
|
from pytradfri.error import PyTradFriError
|
||||||
if exc:
|
if exc:
|
||||||
_LOGGER.warning("Observation failed for %s", self._name,
|
_LOGGER.warning("Observation failed for %s", self._name,
|
||||||
|
@ -279,6 +280,7 @@ class TradfriLight(Light):
|
||||||
@callback
|
@callback
|
||||||
def _async_start_observe(self, exc=None):
|
def _async_start_observe(self, exc=None):
|
||||||
"""Start observation of light."""
|
"""Start observation of light."""
|
||||||
|
# pylint: disable=import-error
|
||||||
from pytradfri.error import PyTradFriError
|
from pytradfri.error import PyTradFriError
|
||||||
if exc:
|
if exc:
|
||||||
_LOGGER.warning("Observation failed for %s", self._name,
|
_LOGGER.warning("Observation failed for %s", self._name,
|
||||||
|
|
|
@ -90,6 +90,7 @@ class TradfriDevice(Entity):
|
||||||
@callback
|
@callback
|
||||||
def _async_start_observe(self, exc=None):
|
def _async_start_observe(self, exc=None):
|
||||||
"""Start observation of light."""
|
"""Start observation of light."""
|
||||||
|
# pylint: disable=import-error
|
||||||
from pytradfri.error import PyTradFriError
|
from pytradfri.error import PyTradFriError
|
||||||
if exc:
|
if exc:
|
||||||
_LOGGER.warning("Observation failed for %s", self._name,
|
_LOGGER.warning("Observation failed for %s", self._name,
|
||||||
|
|
|
@ -16,11 +16,7 @@ from homeassistant.const import CONF_HOST
|
||||||
from homeassistant.components.discovery import SERVICE_IKEA_TRADFRI
|
from homeassistant.components.discovery import SERVICE_IKEA_TRADFRI
|
||||||
from homeassistant.util.json import load_json, save_json
|
from homeassistant.util.json import load_json, save_json
|
||||||
|
|
||||||
REQUIREMENTS = ['pytradfri==4.0.1',
|
REQUIREMENTS = ['pytradfri[async]==4.1.0']
|
||||||
'DTLSSocket==0.1.4',
|
|
||||||
'https://github.com/chrysn/aiocoap/archive/'
|
|
||||||
'3286f48f0b949901c8b5c04c0719dc54ab63d431.zip'
|
|
||||||
'#aiocoap==0.3']
|
|
||||||
|
|
||||||
DOMAIN = 'tradfri'
|
DOMAIN = 'tradfri'
|
||||||
GATEWAY_IDENTITY = 'homeassistant'
|
GATEWAY_IDENTITY = 'homeassistant'
|
||||||
|
@ -143,7 +139,7 @@ def async_setup(hass, config):
|
||||||
def _setup_gateway(hass, hass_config, host, identity, key,
|
def _setup_gateway(hass, hass_config, host, identity, key,
|
||||||
allow_tradfri_groups):
|
allow_tradfri_groups):
|
||||||
"""Create a gateway."""
|
"""Create a gateway."""
|
||||||
from pytradfri import Gateway, RequestError
|
from pytradfri import Gateway, RequestError # pylint: disable=import-error
|
||||||
try:
|
try:
|
||||||
from pytradfri.api.aiocoap_api import APIFactory
|
from pytradfri.api.aiocoap_api import APIFactory
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
|
@ -19,9 +19,6 @@ certifi>=2017.4.17
|
||||||
# homeassistant.components.bbb_gpio
|
# homeassistant.components.bbb_gpio
|
||||||
# Adafruit_BBIO==1.0.0
|
# Adafruit_BBIO==1.0.0
|
||||||
|
|
||||||
# homeassistant.components.tradfri
|
|
||||||
# DTLSSocket==0.1.4
|
|
||||||
|
|
||||||
# homeassistant.components.doorbird
|
# homeassistant.components.doorbird
|
||||||
DoorBirdPy==0.0.4
|
DoorBirdPy==0.0.4
|
||||||
|
|
||||||
|
@ -345,9 +342,6 @@ httplib2==0.10.3
|
||||||
# homeassistant.components.media_player.braviatv
|
# homeassistant.components.media_player.braviatv
|
||||||
https://github.com/aparraga/braviarc/archive/0.3.7.zip#braviarc==0.3.7
|
https://github.com/aparraga/braviarc/archive/0.3.7.zip#braviarc==0.3.7
|
||||||
|
|
||||||
# homeassistant.components.tradfri
|
|
||||||
# https://github.com/chrysn/aiocoap/archive/3286f48f0b949901c8b5c04c0719dc54ab63d431.zip#aiocoap==0.3
|
|
||||||
|
|
||||||
# homeassistant.components.media_player.spotify
|
# homeassistant.components.media_player.spotify
|
||||||
https://github.com/happyleavesaoc/spotipy/archive/544614f4b1d508201d363e84e871f86c90aa26b2.zip#spotipy==2.4.4
|
https://github.com/happyleavesaoc/spotipy/archive/544614f4b1d508201d363e84e871f86c90aa26b2.zip#spotipy==2.4.4
|
||||||
|
|
||||||
|
@ -901,7 +895,7 @@ pytile==1.0.0
|
||||||
pytrackr==0.0.5
|
pytrackr==0.0.5
|
||||||
|
|
||||||
# homeassistant.components.tradfri
|
# homeassistant.components.tradfri
|
||||||
pytradfri==4.0.1
|
# pytradfri[async]==4.1.0
|
||||||
|
|
||||||
# homeassistant.components.device_tracker.unifi
|
# homeassistant.components.device_tracker.unifi
|
||||||
pyunifi==2.13
|
pyunifi==2.13
|
||||||
|
|
|
@ -31,8 +31,7 @@ COMMENT_REQUIREMENTS = (
|
||||||
'envirophat',
|
'envirophat',
|
||||||
'i2csense',
|
'i2csense',
|
||||||
'credstash',
|
'credstash',
|
||||||
'aiocoap', # Temp, will be removed when Python 3.4 is no longer supported.
|
'pytradfri',
|
||||||
'DTLSSocket' # Requires cython.
|
|
||||||
)
|
)
|
||||||
|
|
||||||
TEST_REQUIREMENTS = (
|
TEST_REQUIREMENTS = (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue