Update pyruter to 1.1.0 to be able to reuse aiohttp session. (#18310)

* Update pyruter to 1.1.0 to be able to reuse aiohttp session.

* Taged correct version of pyruter.
This commit is contained in:
Joakim Sørensen 2018-11-07 19:54:33 +01:00 committed by Charles Garwood
parent aa4da479b5
commit 0bf054fb59
2 changed files with 5 additions and 3 deletions

View file

@ -12,8 +12,9 @@ import homeassistant.helpers.config_validation as cv
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_NAME
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.aiohttp_client import async_get_clientsession
REQUIREMENTS = ['pyruter==1.0.2']
REQUIREMENTS = ['pyruter==1.1.0']
_LOGGER = logging.getLogger(__name__)
@ -41,7 +42,8 @@ async def async_setup_platform(
name = config[CONF_NAME]
offset = config[CONF_OFFSET]
ruter = Departures(hass.loop, stop_id, destination)
session = async_get_clientsession(hass)
ruter = Departures(hass.loop, stop_id, destination, session)
sensor = [RuterSensor(ruter, name, offset)]
async_add_entities(sensor, True)

View file

@ -1087,7 +1087,7 @@ pyrainbird==0.1.6
pyrecswitch==1.0.2
# homeassistant.components.sensor.ruter
pyruter==1.0.2
pyruter==1.1.0
# homeassistant.components.sabnzbd
pysabnzbd==1.1.0