* calculate brightness from color; scale color
* fix merge
* fix sending color only for brightness independent rgb color
* fix tests for rgb and rgbw color
* use public match_max_scale
* 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
* put error message in strings
* test for abort and message from strings
* handle AuthenticationError in step_user
* update tests with exceptions
* update reauth with exceptions
* use try except else per suggestion
* only create schema if necessary
* catch auth error in async_setup_entry
* one more fix in test_init
* Add unique id's to Vallox entities
* Cache uuid properties
Requested in code review.
Caching None isn't a problem as the underlying implementation of get_uuid
in the vallox_websocket_api library can never return None.
* Simplify get_uuid type check
Based on review comments.
* Set _attr_unique_id in init
* Import the library get_uuid under a different name
There are a few options here:
1. Rename the get_uuid method with a synonym
2. Import get_uuid under a different name
3. Convert get_uuid into a property
4. Rename get_uuid in the Vallox library
None of these options is that appealing. I'll start with option two,
anyways.
* Add Reauth flow to Wallbox integration
* Review comments processed
* Fixed tests
* Added test for reauth invalid
* Commit to compensate for timedrift, show changes
Compensating for timedrift in my devcontainer,
making a new commit with the right date/time. Requested changes
were done in a previous commit.
* remove reauth schema
* Update homeassistant/components/wallbox/__init__.py
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: J. Nick Koston <nick@koston.org>
* Pre-factor nest subscriber to library
Move the nest subscriber to a library that can be reused in a future PR:
- From ConfigFlow for creating subscriptions
- On nest removal to delete subscriptions
This is pulled out of PR #59260 to make that easier to review.
* Resolve pylint error in nest api subscriber
* Remove duplicate constants
* Refactor nest ConfigEntry creation in tests into a helper
This is pulled out of PR#59260 to make that overall diff smaller.
* Add typing consistently on new functions