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
import homeassistant.helpers.config_validation as cv
REQUIREMENTS = ['pylinky==0.1.8']
REQUIREMENTS = ['pylinky==0.3.0']
_LOGGER = logging.getLogger(__name__)
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
client = LinkyClient(username, password, None, timeout)
try:
client.login()
client.fetch_data()
except PyLinkyError as exp:
_LOGGER.error(exp)

View file

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