* Use HERE API v8
Signed-off-by: Kevin Stillhammer <kevin.stillhammer@gmail.com>
* Add migration
Signed-off-by: Kevin Stillhammer <kevin.stillhammer@gmail.com>
* Catch correct voluptuous error
Signed-off-by: Kevin Stillhammer <kevin.stillhammer@gmail.com>
* Use list comprehension for transit values
* Add migration alternative
Signed-off-by: Kevin Stillhammer <kevin.stillhammer@gmail.com>
* 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>
* Catch malformed coordinates in here_travel_time
* Add testcase for malformed entity_id state
* Replace type ignore with None check
* Directly raise InvalidCoordinatesException
* 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>
* Convert persistent notification tests to async
* Create/dismiss persistent notifications in exposed functions, not service calls
* Fix notify persistent_notification
* Remove setting up persistent_notification
* Drop more setups
* Empty methods
* Undeprecate sync methods because too big task
* Fix setup clearing notifications
* Fix a bunch of tests
* Fix more tests
* Uno mas
* Test persistent notification events
* Clean up stale comment
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* here_travel_time: Add modes arrival and departure
* convert arrival/departure from datetime to time
* Default departure is set by external lib on None
* Use cv.key_value_schemas
* Add and use time related constants
* Sort time constants and reuse them in data rate constants
* Fix greeneyemonitor import
* Fix greeneyemonitor import V2
* Fix failing here_travel_time test
* Add TIME_MONTHS and TIME_YEARS
* Use TIME_MINUTES in opentherm_gw and isy994
* Add and use TIME_MILLISECONDS
* Change inconsistent ones
* Add TIME_MICROSECONDS and TIME_WEEKS
* Use constants in apcupsd and travisci
* Fix import error in upnp sensor.py
* Fix isy994 sensor.py using TIME_YEARS
* Fix dyson tests
* Use TIME_SECONDS in more places
* Use TIME_DAYS in google wifi
* add support for entity_id as state of entity
* add circular reference detection
* voluptuous instead of regex
* wait for EVENT_HOMEASSISTANT_START
* move delayed_sensor_update to async_added_to_hass
* add @callback decorator
* remove nested entity resolving