mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
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:
parent
aa4da479b5
commit
0bf054fb59
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user