Commit graph

26 commits

Author SHA1 Message Date
Yaron de Leeuw
a744dc270b Update pygtfs to upstream's 0.1.5 ()
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 
2018-12-09 23:32:48 +01:00
Paulus Schoutsen
994b829cb4
add_devices -> add_entities ()
* add_devices -> add_entities

* Lint

* PyLint

* Revert external method in scsgate
2018-08-24 16:37:30 +02:00
Ville Skyttä
bf17ed0917 More pylint 2 fixes ()
* Pylint 2 useless-import-alias fixes

* Pylint 2 chained-comparison fixes

* Pylint 2 consider-using-get fixes

* Pylint 2 len-as-condition fixes
2018-07-18 11:54:27 +02:00
Andrey
5995c6a2ac Switch to own packaged version of pygtfs () 2018-07-15 21:32:20 +02:00
Paulus Schoutsen
3fd61d8f45 Update voluputous ()
* Update voluputous

* Fix http config

* Fix optional with default=None

* Optional, default=none

* Fix defaults in voluptuous schemas

* Fix tests

* Fix update error

* Lint
2018-02-17 10:29:14 +01:00
Marc Plano-Lesay
074e31bcf9 GTFS: check start/end date on services ()
Fixes 
2017-07-06 22:22:31 -07:00
Marc Plano-Lesay
edeb92ea42 Add offset option to sensor.gtfs ()
* Add offset option to sensor.gtfs

* Fix long lines in sensor.gtfs

* Expose GTFS offset as an attribute
2017-06-24 17:45:14 +02:00
Fabian Affolter
a4f1f6e724 Update docstrings ()
* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstring

* Update docstrings

* Update docstrings

* Fix lint issues

* Update docstrings

* Revert changes in dict
2017-05-02 09:18:47 -07:00
Robbie Trencheny
6000c59bb5 Remove GTFS default name & string change 2017-01-13 14:02:00 -08:00
Hugo Dupras
c125c4af4f Fix for GTFS sensor ()
* Fix for GTFS sensor

Signed-off-by: Hugo D. (jabesq) <jabesq@gmail.com>

* GTFS fix

Signed-off-by: Hugo D. (jabesq) <jabesq@gmail.com>
2016-12-15 21:40:33 -08:00
Fabian Affolter
be272ac64a Disable too-many-* ()
* Disable too-many-* and too-few-public-methods

* Remove globally disabled pylint warnings
2016-10-30 22:18:53 +01:00
phardy
c8ca66b671 Stop GTFS component from overwriting friendly_name ()
* Prevent update from clobbering configured name.

* linted

* Fixing awkward line breaking.
2016-10-10 22:36:20 -07:00
Fabian Affolter
cb3a78b330 Adjust vol to accept filenames (fixes ) () 2016-10-05 18:02:45 +02:00
Fabian Affolter
cd67368bb7 Migrate to voluptuous ()
🐬
2016-09-04 10:27:19 -06:00
Gergely Imreh
abc353c083 sensor/gtfs: add sanity check, origin earlier than destination ()
Previously experienced issues on routes where services operate in both
directions. The query picked up not just paths where service goes
from Origin ->  Destination, but trips going Destination -> Origin,
and shown bogus results.

Ensure that this doesn't happen by requiring the origin station's
stop_sequence value to be lower than the destination station.
2016-06-09 20:48:12 -07:00
Robbie Trencheny
0f1c4d2f8c GTFS fixes ()
* Change to official PyGTFS source

* Threading fixes for GTFS

* Actually pygtfs 0.1.3

* Update requirements_all.txt

* Update gtfs version
2016-05-21 11:04:18 -07:00
Robbie Trencheny
05469e6d9b Update pyGTFS version 2016-04-13 00:40:12 -07:00
Robbie Trencheny
2a194d8861 Use named string formatting for safety 2016-03-26 18:55:49 -07:00
Robbie Trencheny
dac3c9d1b5 Pylint and flake8 2016-03-26 18:53:21 -07:00
Robbie Trencheny
5a35e4a9ba Data source validation 2016-03-26 18:52:03 -07:00
Robbie Trencheny
1fd96296f7 Use parameterized queries when possible 2016-03-26 18:47:54 -07:00
Robbie Trencheny
116b83b53f Fix PyGTFS import errors 2016-03-26 18:25:49 -07:00
Robbie Trencheny
f31ba11861 Lock SQLAlchemy 2016-03-26 18:05:34 -07:00
Robbie Trencheny
982baaba22 Annoying missing period 2016-03-26 17:59:38 -07:00
Robbie Trencheny
8fe1a9f008 Pylint and flake8 2016-03-26 17:53:46 -07:00
Robbie Trencheny
90f1b57ed8 Initial GTFS sensor 2016-03-26 17:41:09 -07:00