* Improve caldav tests to use APIs rather than entity methods
Update caldav tests to use the best practice of exercising the public APIs rather than directly calling the entity methods directly. This is motivated by additional calendar API cleanup and possibly future breaking changes.
* Remove unnecessary start/end arguments which are ignored
Add test coverage for the calendar event response format as I am about to do some
refactoring and simplification. Notably, each calendar implementation uses a slightly different
API response, and this is codifying that.
* Fix notify discovery setup
* add test
* unsubscribe at reset
* Add guard
* move dispatcher to reload module
* only unsubscribe if platform was setup
* initialize dispatcher once and tests
* test get_service too
* add tests
* fix test
* use get_service for test invalid platform
* Test built-in reload method
* set to None after clearing dispatcher - tests
* Pathing services file
* Update tests/components/notify/test_init.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* dispatcher is not set twice if integration loaded
* empty discovery payload
* Removed not needed services.yaml mock
* Update tests/components/notify/test_init.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* flake8
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Add CONF_LOCATION constant
* Update all custom CONF_LOCATION definitions to point to constant
* remove CONF_LOCATION from homeassistant/components/totalconnect/const
* Include has_mean + has_sum in statistics metadata WS response
* Don't include has_mean/has_sum in history/list_statistic_ids
* Adjust tests
* Do include has_mean/has_sum in history/list_statistic_ids
* 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>