Ian
3e8d3083ac
Refactor NextBus integration to use new API ( #121133 )
...
* Refactor NextBus integration to use new API
This removes the `messages`, `directions`, and `attribution` attributes
from the sensor. Those may be added back in the future with additional
refactoring.
Some existing sensors may be broken today because of deprecated Agency
names. This patch will not migrate them as the migration path is
ambiguous. Setting up again should work though.
* Move result indexing outside of try/except
2024-07-24 18:18:21 +02:00
Sid
9bf87329da
Enable Ruff FLY002 rule ( #115112 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2024-04-12 09:04:16 +02:00
Joost Lekkerkerker
763df83cdb
Remove Nextbus YAML import ( #115277 )
2024-04-09 18:34:35 +02:00
Marc Mueller
988c71ecc5
Add empty line after module docstring [n-q] ( #112702 )
2024-03-08 15:04:07 +01:00
Joost Lekkerkerker
895dc6fce1
Add icon translations to Nextbus ( #111981 )
2024-03-03 14:08:19 +01:00
Joost Lekkerkerker
a82410d5e9
Deduplicate constants E-Z ( #105657 )
2023-12-13 17:05:37 +01:00
Ian
e652d37f29
Use data update coordinator in NextBus to reduce api calls ( #100602 )
2023-10-02 10:56:10 +02:00
Ian
c3f74ae022
Add config-flow to NextBus ( #92149 )
2023-09-19 17:10:29 +02:00
Ian
4b4660994c
Use shorthand attributes in NextBus ( #94084 )
...
* NextBus: Use attr with unique id
* Feedback
* Remove unique id
2023-06-06 07:08:42 +02:00
Ian
0fcf8f968b
Move nextbus constants and utils ( #92211 )
...
* NextBus: Move general components to const and util
* Remove not yet used code
2023-05-11 17:28:29 +01:00
Marc Mueller
63d519c1a8
Spelling updates ( #82867 )
2022-11-28 16:51:43 +01:00
epenet
420733a064
Improve entity type hints [n] ( #77824 )
2022-09-05 07:53:55 -05:00
epenet
80b6195505
Add sensor setup type hints [m-n] ( #63314 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:09:36 +01:00
Ian
a6cfbd4072
Nextbus upcoming sort as integer ( #61416 )
2021-12-17 09:39:55 +01:00
epenet
81ea811b74
Use new enums in nextbus ( #61954 )
2021-12-16 22:44:17 +01:00
Paulus Schoutsen
ea42384afd
Fix nextbus timestamp sensor ( #61212 )
2021-12-07 22:23:14 -08:00
Erik Montnemery
103e21c278
Move temperature conversions to sensor base class (5/8) ( #54475 )
2021-08-12 13:26:17 +02:00
Franck Nijhof
fcdd8b11a6
Collection of changing entity properties to class attributes - 2 ( #51345 )
2021-06-01 12:43:55 -07:00
Erik Montnemery
c900e3030b
Migrate integrations n-q to extend SensorEntity ( #48214 )
2021-03-22 19:46:46 +01:00
Erik Montnemery
14a59d290a
Update integrations j-o to override extra_state_attributes() ( #47758 )
2021-03-11 20:11:25 +01:00
Franck Nijhof
187b6525b4
Removal of extraneous parenthesis ( #33637 )
2020-04-04 20:08:55 +02:00
Ian
4f1f4a1b4f
Nextbus: Sort results for upcoming times ( #29811 )
...
Sort upcoming times across all direction's for a particular route and
stop.
2019-12-10 09:22:13 +01:00
springstan
20fdcbadff
Move imports to top for nextbus ( #29520 )
...
* Move imports to top for nextbus
* Fix test_sensor.py failed tests
2019-12-05 21:56:42 +01:00
Grodesh
f8712b4d7f
Update nextbus stop tag to accept strings ( #27765 )
2019-11-06 07:24:11 +01:00
Franck Nijhof
1c5e0123c9
Use literal string interpolation in integrations N-Q (f-strings) ( #26391 )
2019-09-03 11:35:00 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
nierob
979f801488
Avoid creating temporary lists ( #25317 )
...
That gives nano performance improvements as *() is slightly faster
then *[].
2019-07-19 13:36:18 -07:00
Ian
c2e7445271
Add new nextbus sensor ( #20197 )
...
* Added new nextbus sensor
* Fix order in requirements_all after merge
* Add more flexible parsing of JSON lists
* Undo tox change
2019-04-26 19:51:58 -05:00