* update total_connect_client to 2021.10
* update for total_connect_client changes
* remove unused return value
* bump total_connect_client to 2021.11.1
* bump total_connect_client to 2021.11.2
* Move to public ResultCode
* load locations to prevent 'unknown error occurred'
* add test for zero locations
* Revert "load locations to prevent 'unknown error occurred'"
This reverts commit 28b8984be5.
* Revert "add test for zero locations"
This reverts commit 77bf7908d5.
* convert signal messenger unittest to pytest
* more fixtures
* more assertions and fixed test attachment sending
* reverted unrelated changes
* fixed flake errors
* Flake8 related issues fixed
* HHTPStatus instead of int
* tests for a Symo inverter system
* update testing requirement
* add tests for energy meter data
* move response JSONs to fixture directory
* add storage system response
* review suggestion
* Add binary_sensor to venstar to track alerts
* Add binary_sensor.py to coveragerc
* Apply suggestions from code review by alengwenus
Co-authored-by: Andre Lengwenus <alengwenus@gmail.com>
* Fixup black any mypy complaints
* Yank the typing, it makes everything complain
Co-authored-by: Andre Lengwenus <alengwenus@gmail.com>
* Add support for Installed Auth authentication flows.
Add support for additional credential types to make configuration simpler for
end users. The existing Web App auth flow requires users to configure
redirect urls with Google that has a very high security bar: requires ssl,
and a publicly resolvable dns name.
The new Installed App flow requires the user to copy/paste an access code
and is the same flow used by the `google` calendar integration. This also
allows us to let users create one authentication credential to use with
multiple google integrations.
* Remove hard migration for nest config entries, using soft migration
* Add comment explaining soft migration
* Revet changes to common.py made obsolete by removing migration
* Reduce unnecessary diffs in nest common.py
* Update config entries using library method
* Run `python3 -m script.translations develop`
* Revert nest auth domain
* Remove compat function which is no longer needed
* Remove stale nest comment
* Adjust typing for python3.8
* Address PR feedback for nest auth revamp
* Fail deprecated options
* new removed validator
* correct module_name - add tests
* Add test cant find module cv.removed
* module name from stack+1
* Remove error from log. Just throw.
* assert on thrown exception text
* cleanup formatting remove KeyStyleAdapter
* format the replacement_key and update test
* deprecated vs removed - add raise_if_present opt
* doc string update
* is deprecated
* Add type hints.
* Refactor AuroraDevice to AuroraDeviceEntity
* Refactor AuroraDevice to AuroraDeviceEntity
* Connection class is defined in manifest.
* Separate words with underscore in variable names
* Remove duplicated code.
* Remove unused "unknown" string
* Test import yaml when integration already setup
* Remove test already done in config_flow test
* Convert variable names to snake case
* Shorten AuroraDeviceEntity to AuroraEntity
* Add typing
* Remove unnecessary integration setup in test.
* Refactor "already_setup" to "already_configured"
* Use common string
* Reduce the amount of code in the try block.
* Fix merge
* Allow yaml setup to be deferred if no comms
* Properly setup all sensors for defered yaml setup.
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Add type hints.
* Refactor AuroraDevice to AuroraDeviceEntity
* Refactor AuroraDevice to AuroraDeviceEntity
* Connection class is defined in manifest.
* Separate words with underscore in variable names
* Remove duplicated code.
* Remove unused "unknown" string
* Test import yaml when integration already setup
* Remove test already done in config_flow test
* Convert variable names to snake case
* Shorten AuroraDeviceEntity to AuroraEntity
* Add typing
* Remove unnecessary integration setup in test.
* Refactor "already_setup" to "already_configured"
* Use common string
* Reduce the amount of code in the try block.
* Allow yaml setup to be deferred if no comms
* Properly setup all sensors for defered yaml setup.
* Code review: move line out of try block.
* Improve test coverage
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Defer unique_id assignment during yaml import if dark
* Back out variable name change to simplify.
* Allow config flow yaml setup deferral.
* Fix deferred yaml import
* Code review: only wrap necessary lines in try blk
* Code review: catch possible duplicate unique_id
* Simplify assignment.
* Code review: use timedelta to retry yaml import
* Code review: if a different error occurs, raise it
* Remove current config entry if duplicate unique_id
* Code review: remove unnecessary line.
* Code review: revert change, leave to other PR.
* Code review: remove unnecessary patch & min->sec
* Remove unnecessary else after raise.
* Increase test coverage.
* Check the number of config entries at each stage
* Raise ConfigEntryNotReady when connection fails.
* Log & return false for error on yaml import
* Better tests
* Fix find_next_time_expression_time
* Add tests for Nov 7th 2021, Chicago transtion
* Update event tests
* Update test_event.py
* small performance improvement
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* add configuration url
* extend data update coordinator
* improve exception handling during data update
* store coordinator after first refresh
* fix light init