Update pygtfs to upstream's 0.1.5 (#19151)

This works by adding `?check_same_thread=False` to the sqlite
connection string, as suggested by robbiet480@.
It upgrades pygtfs from homeassitant's forked 0.1.3 version to 0.1.5.

Fixes #15725
This commit is contained in:
Yaron de Leeuw 2018-12-09 17:32:48 -05:00 committed by Fabian Affolter
parent 866c2ca994
commit a744dc270b
2 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ from homeassistant.const import CONF_NAME
from homeassistant.helpers.entity import Entity
import homeassistant.helpers.config_validation as cv
REQUIREMENTS = ['pygtfs-homeassistant==0.1.3.dev0']
REQUIREMENTS = ['pygtfs==0.1.5']
_LOGGER = logging.getLogger(__name__)
@ -169,9 +169,9 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
import pygtfs
split_file_name = os.path.splitext(data)
(gtfs_root, _) = os.path.splitext(data)
sqlite_file = "{}.sqlite".format(split_file_name[0])
sqlite_file = "{}.sqlite?check_same_thread=False".format(gtfs_root)
joined_path = os.path.join(gtfs_dir, sqlite_file)
gtfs = pygtfs.Schedule(joined_path)

View file

@ -963,7 +963,7 @@ pygatt==3.2.0
pygogogate2==0.1.1
# homeassistant.components.sensor.gtfs
pygtfs-homeassistant==0.1.3.dev0
pygtfs==0.1.5
# homeassistant.components.remote.harmony
pyharmony==1.0.20