core/tests/fixtures/here_travel_time
Kevin Eifinger 5c0fa35d4a Add here_travel_time (#24603)
* Add here_travel_time

* Bump herepy version to 0.6.2

* Update requirements_all.txt

* Disable pylint and catch errors

* Add herepy to requirements_test_all

* Correctly place test req for herepy

* use homeassistant.const.LENGTH_METERS

* Implemented Requested Changes

* Better error message for cryptic error code

* add requested changes

* add_entities instead of async

* Add route attr and distance in km instead of m

* fix linting errors

* attribute duration in minutes instead of seconds

* Correct pattern for longitude

* dont split attribute but rather local var

* move strings to const and use travelTime

* Add tests

* Add route for pedestrian and public

* fix public transport route generation

* remove print statement

* Standalone pytest

* Use hass fixture and increase test cov
_resolve_zone is redundant

* Clean up redundant code

* Add type annotations

* Readd _resolve_zone and add a test for it

* Full test cov

* use caplog

* Add origin/destination attributes
According to https://github.com/home-assistant/home-assistant/pull/24956

* Add mode: bicycle

* black

* Add mode: publicTransportTimeTable

* Fix error for publicTransportTimeTable
Switch route_mode and travel_mode in api request.

* split up config options

* More type hints

* implement *_entity_id

* align attributes with google_travel_time

* route in lib
apply requested changes

* Update requirements_all.txt

* remove DATA_KEY

* Use ATTR_MODE

* add attribution

* Only add attribution if not none

* Add debug log for raw response

* Add _build_hass_attribution

* clearer var names in credentials check

* async _are_valid_client_credentials
2019-09-23 11:50:18 +02:00
..
attribution_response.json Add here_travel_time (#24603) 2019-09-23 11:50:18 +02:00
bike_response.json Add here_travel_time (#24603) 2019-09-23 11:50:18 +02:00
car_enabled_response.json Add here_travel_time (#24603) 2019-09-23 11:50:18 +02:00
car_response.json Add here_travel_time (#24603) 2019-09-23 11:50:18 +02:00
car_shortest_response.json Add here_travel_time (#24603) 2019-09-23 11:50:18 +02:00
pedestrian_response.json Add here_travel_time (#24603) 2019-09-23 11:50:18 +02:00
public_response.json Add here_travel_time (#24603) 2019-09-23 11:50:18 +02:00
public_time_table_response.json Add here_travel_time (#24603) 2019-09-23 11:50:18 +02:00
routing_error_invalid_credentials.json Add here_travel_time (#24603) 2019-09-23 11:50:18 +02:00
routing_error_no_route_found.json Add here_travel_time (#24603) 2019-09-23 11:50:18 +02:00
truck_response.json Add here_travel_time (#24603) 2019-09-23 11:50:18 +02:00