mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Update pylinky (#21416)
This commit is contained in:
parent
619ea3ff98
commit
f190b698c6
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user