Update pytradfri to 4.1.0 (#10521)

This commit is contained in:
Lewis Juggins 2017-11-22 09:37:20 +00:00 committed by GitHub
parent b784d80973
commit cfb1853bbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 15 deletions

View file

@ -120,6 +120,7 @@ class TradfriGroup(Light):
@callback
def _async_start_observe(self, exc=None):
"""Start observation of light."""
# pylint: disable=import-error
from pytradfri.error import PyTradFriError
if exc:
_LOGGER.warning("Observation failed for %s", self._name,
@ -279,6 +280,7 @@ class TradfriLight(Light):
@callback
def _async_start_observe(self, exc=None):
"""Start observation of light."""
# pylint: disable=import-error
from pytradfri.error import PyTradFriError
if exc:
_LOGGER.warning("Observation failed for %s", self._name,

View file

@ -90,6 +90,7 @@ class TradfriDevice(Entity):
@callback
def _async_start_observe(self, exc=None):
"""Start observation of light."""
# pylint: disable=import-error
from pytradfri.error import PyTradFriError
if exc:
_LOGGER.warning("Observation failed for %s", self._name,

View file

@ -16,11 +16,7 @@ from homeassistant.const import CONF_HOST
from homeassistant.components.discovery import SERVICE_IKEA_TRADFRI
from homeassistant.util.json import load_json, save_json
REQUIREMENTS = ['pytradfri==4.0.1',
'DTLSSocket==0.1.4',
'https://github.com/chrysn/aiocoap/archive/'
'3286f48f0b949901c8b5c04c0719dc54ab63d431.zip'
'#aiocoap==0.3']
REQUIREMENTS = ['pytradfri[async]==4.1.0']
DOMAIN = 'tradfri'
GATEWAY_IDENTITY = 'homeassistant'
@ -143,7 +139,7 @@ def async_setup(hass, config):
def _setup_gateway(hass, hass_config, host, identity, key,
allow_tradfri_groups):
"""Create a gateway."""
from pytradfri import Gateway, RequestError
from pytradfri import Gateway, RequestError # pylint: disable=import-error
try:
from pytradfri.api.aiocoap_api import APIFactory
except ImportError: