Commit Graph

81 Commits (1f928042111c9368d5899badb70052689229ed38)

Author SHA1 Message Date
Kevin Stillhammer f59c8d985d
Correct unit for here_travel_time distance sensor (#78303)
Signed-off-by: Kevin Stillhammer <kevin.stillhammer@gmail.com>

Signed-off-by: Kevin Stillhammer <kevin.stillhammer@gmail.com>
2022-09-16 21:03:18 -07:00
GitHub Action 23faf8024e [ci skip] Translation update 2022-09-14 00:28:24 +00:00
GitHub Action 4f7ad27b65 [ci skip] Translation update 2022-09-07 00:27:56 +00:00
Kevin Stillhammer dec2661322
Required option_flow values for here_travel_time (#77651) 2022-09-01 10:19:21 +02:00
Kevin Stillhammer 95dd9def66
Required config_flow values for here_travel_time (#75026) 2022-08-31 18:40:13 -07:00
GitHub Action 519d478d61 [ci skip] Translation update 2022-08-11 00:26:23 +00:00
Kevin Stillhammer b19ace9124
Use constructor instead of factory method for sensors in here_travel_time (#76471) 2022-08-09 10:54:07 -04:00
GitHub Action e09bbc749c [ci skip] Translation update 2022-08-03 00:28:23 +00:00
GitHub Action 81e3ef03f7 [ci skip] Translation update 2022-08-02 00:27:42 +00:00
GitHub Action c4ad6d46ae [ci skip] Translation update 2022-07-30 00:22:48 +00:00
GitHub Action 4a50010458 [ci skip] Translation update 2022-07-25 00:25:55 +00:00
GitHub Action 87797c8b66 [ci skip] Translation update 2022-07-21 00:26:18 +00:00
GitHub Action 4d5673013b [ci skip] Translation update 2022-07-18 00:24:34 +00:00
GitHub Action d0c4d39ae2 [ci skip] Translation update 2022-07-16 00:26:06 +00:00
GitHub Action 08a361dab9 [ci skip] Translation update 2022-07-15 00:28:00 +00:00
GitHub Action 1d2e64e3dc [ci skip] Translation update 2022-07-14 00:27:41 +00:00
GitHub Action 5d8e1b8387 [ci skip] Translation update 2022-07-12 00:24:26 +00:00
GitHub Action abb11009b4 [ci skip] Translation update 2022-07-11 00:23:28 +00:00
GitHub Action d40ad96916 [ci skip] Translation update 2022-07-10 00:27:48 +00:00
J. Nick Koston cd03c49fc2
Wait for config entry platform forwards (#73806) 2022-07-09 17:27:42 +02:00
GitHub Action cdaefc8fda [ci skip] Translation update 2022-07-09 00:20:23 +00:00
Kevin Stillhammer e55a4dcab1
Add missing strings for here_travel_time (#74641)
* Add missing strings for here_travel_time

* script.translations develop

* Correct origin_menu option
2022-07-08 06:16:13 -07:00
Kevin Stillhammer bef512c425
Split attributes into sensors for here_travel_time (#72405) 2022-06-29 22:09:52 -07:00
GitHub Action 33c263d09b [ci skip] Translation update 2022-06-23 00:20:13 +00:00
GitHub Action 42d39d2c7e [ci skip] Translation update 2022-06-13 00:25:34 +00:00
GitHub Action 7f0091280f [ci skip] Translation update 2022-06-06 00:21:14 +00:00
GitHub Action 7746715590 [ci skip] Translation update 2022-06-02 00:27:51 +00:00
GitHub Action 362f5720ed [ci skip] Translation update 2022-05-31 00:23:11 +00:00
GitHub Action 7a0657c386 [ci skip] Translation update 2022-05-29 00:23:25 +00:00
Kevin Stillhammer e4cd04f936
Use length_util for here_travel_time (#72458) 2022-05-24 20:42:37 -07:00
GitHub Action 301341a49f [ci skip] Translation update 2022-05-25 00:26:18 +00:00
GitHub Action abbfed24a4 [ci skip] Translation update 2022-05-24 00:25:27 +00:00
Kevin Stillhammer 967f4efc56
Cleanup config flow and tests for here_travel_time (#72364) 2022-05-23 16:50:05 +02:00
Kevin Stillhammer 793ad568eb
here_travel_time: Add unique_id and DeviceInfo (#72352)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-05-23 10:47:40 +02:00
Kevin Stillhammer 7649adde5f
Fix here_travel_time config_flow import (#72313)
* Handle import of entity_namespace

* Update homeassistant/components/here_travel_time/config_flow.py

Co-authored-by: Allen Porter <allen.porter@gmail.com>

* Fix mypy

Co-authored-by: Allen Porter <allen.porter@gmail.com>
2022-05-22 18:41:54 -07:00
GitHub Action 7df7e33d17 [ci skip] Translation update 2022-05-23 00:25:42 +00:00
GitHub Action b6b72f50ec [ci skip] Translation update 2022-05-22 00:22:43 +00:00
Kevin Stillhammer f1ac9f8cca
Add ConfigFlow for here_travel_time (#69212)
* Add ConfigFlow for here_travel_time

* Use Selectors and Menu

* Use separate config flow steps for menus

* Move time options together

* Update homeassistant/components/here_travel_time/config_flow.py

Co-authored-by: Allen Porter <allen.porter@gmail.com>

* Blacken config_flow

* Initialize _config

* Only catch HERE errors

* Fix unknown error test

* Implement async_step_import

* Only catch errors for validate_api_key

* Split lat/lon

* Add additional test coverage

* Use TimeSelector in option flow

* Assert config entry data/option

Co-authored-by: Allen Porter <allen.porter@gmail.com>
2022-05-21 07:36:02 -07:00
epenet db10c313b5
Add type hints to here_travel_time (#69216)
* Add type hints to here_travel_time

* Adjust
2022-04-03 23:14:11 +03:00
Kevin Stillhammer 6106f07820
Catch malformed coordinates in here_travel_time (#69023)
* Catch malformed coordinates in here_travel_time

* Add testcase for malformed entity_id state

* Replace type ignore with None check

* Directly raise InvalidCoordinatesException
2022-04-03 10:21:55 -07:00
Erik Montnemery ae9c2df691
Return unsubscribe callback from start.async_at_start (#69083)
* Return unsubscribe callback from start.async_at_start

* Update calling code
2022-04-01 23:34:36 +02:00
Kevin Stillhammer dc71ecf67e
Wait for Home Assistant start in here_travel_time (#68757)
* Wait for Home Assistant to fully start.

* Update homeassistant/components/here_travel_time/sensor.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Define callback for _update_at_start

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-29 12:50:47 +02:00
Marc Mueller 911b159281
Cleanup after pylint update (#68657) 2022-03-26 00:34:12 +01:00
Kevin Stillhammer adbacdd5c2
Use DataUpdateCoordinator in here_travel_time (#61398)
* Add DataUpdateCoordinator

* Use TypedDict for extra_state_attributes

* Extend DataUpdateCoordinator

* Use platform enum

* Use attribution property

* Use relative imports

* Revert native_value logic

* Directly return result in build_hass_attribution

* Correctly declare traffic_mode as bool

* Use self._attr_*

* Fix mypy issues

* Update homeassistant/components/here_travel_time/__init__.py

Co-authored-by: Allen Porter <allen.porter@gmail.com>

* Update homeassistant/components/here_travel_time/__init__.py

Co-authored-by: Allen Porter <allen.porter@gmail.com>

* Update homeassistant/components/here_travel_time/sensor.py

Co-authored-by: Allen Porter <allen.porter@gmail.com>

* blacken

* from datetime import time

* remove none check

* Move dataclasses to models.py

* Set destination to now if None

* Add mypy error code

Co-authored-by: Allen Porter <allen.porter@gmail.com>
2022-03-23 20:53:31 -07:00
Kevin Stillhammer f803c880ae
Correct type for convert_time_to_isodate (#67846) 2022-03-10 07:21:22 +01:00
J. Nick Koston 5b755b74fb
Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08:00
epenet 78e92d1662
Adjust pylint plugin to enforce platform type hints (#64836)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-24 18:51:06 +01:00
Kevin Stillhammer d1962f6e51
Cleanup here_travel_time tests (#60529) 2021-12-01 21:52:44 +01:00
Kevin Stillhammer 6167e4178b
Use find_coordinates in here_travel_time (#59938) 2021-11-29 16:54:03 +01:00
Marc Mueller 1bcf39517a
Use assignment expressions 13 (#57938) 2021-10-21 08:27:42 +02:00