-
- Downloads
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
Showing
- CODEOWNERS 1 addition, 0 deletionsCODEOWNERS
- homeassistant/components/here_travel_time/__init__.py 1 addition, 0 deletionshomeassistant/components/here_travel_time/__init__.py
- homeassistant/components/here_travel_time/manifest.json 12 additions, 0 deletionshomeassistant/components/here_travel_time/manifest.json
- homeassistant/components/here_travel_time/sensor.py 431 additions, 0 deletionshomeassistant/components/here_travel_time/sensor.py
- requirements_all.txt 3 additions, 0 deletionsrequirements_all.txt
- requirements_test_all.txt 3 additions, 0 deletionsrequirements_test_all.txt
- script/gen_requirements_all.py 1 addition, 0 deletionsscript/gen_requirements_all.py
- tests/components/here_travel_time/__init__.py 1 addition, 0 deletionstests/components/here_travel_time/__init__.py
- tests/components/here_travel_time/test_sensor.py 947 additions, 0 deletionstests/components/here_travel_time/test_sensor.py
- tests/fixtures/here_travel_time/attribution_response.json 276 additions, 0 deletionstests/fixtures/here_travel_time/attribution_response.json
- tests/fixtures/here_travel_time/bike_response.json 274 additions, 0 deletionstests/fixtures/here_travel_time/bike_response.json
- tests/fixtures/here_travel_time/car_enabled_response.json 298 additions, 0 deletionstests/fixtures/here_travel_time/car_enabled_response.json
- tests/fixtures/here_travel_time/car_response.json 299 additions, 0 deletionstests/fixtures/here_travel_time/car_response.json
- tests/fixtures/here_travel_time/car_shortest_response.json 231 additions, 0 deletionstests/fixtures/here_travel_time/car_shortest_response.json
- tests/fixtures/here_travel_time/pedestrian_response.json 308 additions, 0 deletionstests/fixtures/here_travel_time/pedestrian_response.json
- tests/fixtures/here_travel_time/public_response.json 294 additions, 0 deletionstests/fixtures/here_travel_time/public_response.json
- tests/fixtures/here_travel_time/public_time_table_response.json 308 additions, 0 deletions...fixtures/here_travel_time/public_time_table_response.json
- tests/fixtures/here_travel_time/routing_error_invalid_credentials.json 15 additions, 0 deletions...s/here_travel_time/routing_error_invalid_credentials.json
- tests/fixtures/here_travel_time/routing_error_no_route_found.json 21 additions, 0 deletions...xtures/here_travel_time/routing_error_no_route_found.json
- tests/fixtures/here_travel_time/truck_response.json 187 additions, 0 deletionstests/fixtures/here_travel_time/truck_response.json
Loading
Please register or sign in to comment