Update pylinky (#21416)

This commit is contained in:
Baptiste Lecocq 2019-02-25 07:44:33 +01:00 committed by Fabian Affolter
parent 619ea3ff98
commit f190b698c6
2 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,7 @@ from homeassistant.helpers.entity import Entity
from homeassistant.util import Throttle from homeassistant.util import Throttle
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
REQUIREMENTS = ['pylinky==0.1.8'] REQUIREMENTS = ['pylinky==0.3.0']
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
SCAN_INTERVAL = timedelta(minutes=10) SCAN_INTERVAL = timedelta(minutes=10)
@ -38,6 +38,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
from pylinky.client import LinkyClient, PyLinkyError from pylinky.client import LinkyClient, PyLinkyError
client = LinkyClient(username, password, None, timeout) client = LinkyClient(username, password, None, timeout)
try: try:
client.login()
client.fetch_data() client.fetch_data()
except PyLinkyError as exp: except PyLinkyError as exp:
_LOGGER.error(exp) _LOGGER.error(exp)

View File

@ -1113,7 +1113,7 @@ pylgnetcast-homeassistant==0.2.0.dev0
pylgtv==0.1.9 pylgtv==0.1.9
# homeassistant.components.sensor.linky # homeassistant.components.sensor.linky
pylinky==0.1.8 pylinky==0.3.0
# homeassistant.components.litejet # homeassistant.components.litejet
pylitejet==0.1 pylitejet==0.1