-
Notifications
You must be signed in to change notification settings - Fork 72
Implement external state restoration #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
puddly
merged 37 commits into
zigpy:dev
from
puddly:puddly/lighting-state-restoration-fixes
Jul 5, 2024
Merged
Changes from 11 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
a87531d
Consolidate init-time state reading for Light entity
puddly 22b85c7
Read the color mode from cache as well
puddly 58f9b63
Remove duplicate `supported_color_modes` variable
puddly da3c155
Switch `zcl_color_mode_to_entity_color_mode` to a static dictionary
puddly eafe473
Only set the color mode from the supported color modes if it is uncached
puddly c54bdda
Update the attribute cache color mode after the color has been succes…
puddly a8bc97a
Do not persist the color mode for groups
puddly 8585328
Test that the color mode changes
puddly c21fd00
Account for invalid ZCL color modes
puddly 6d8395d
Add a quick test for HS
puddly da2cf75
Unit test enhanced hue as well
puddly bd22c2b
Re-introduce erroneously removed `cached_property`
puddly ba9ed65
Add `restore_extra_state_attributes`
puddly 4e164c0
Persist the door lock state after locking/unlocking
puddly 73c4be7
Remove unused lock `kwargs`
puddly b951f8b
Add `restore_external_state_attributes`
puddly c075f46
Implement external state for `cover`
puddly 9eaf159
Implement external state for `select`
puddly 7ef8ba3
Implement external state for `siren`
puddly 890a826
Remove unnecessary `_persist_lock_state`
puddly 8aebd9a
Revert "Implement external state for `siren`"
puddly 1802d95
Implement a stub `restore_external_state_attributes` for non-ZCL selects
puddly c6c15b2
Migrate coverage to `pyproject.toml` and exclude NotImplementedError
puddly 8aebec5
Update zha/application/platforms/light/__init__.py
puddly 3eb8222
Migrate lighting to use explicit state restoration instead of ZCL cache
puddly cd36b2f
Reduce diff size
puddly 4680d66
Only restore the state if the attribute isn't `None`
puddly d0703bd
Migrate lock to use state restoration
puddly 50f6d16
Add some unit tests
puddly d8c25ef
Offload validation to Core
puddly 3b069b6
Implement an `undefined` type
puddly d6165c5
Migrate remaining platforms to use `UNDEFINED` as well, where appropr…
puddly 4df1b9a
Finish unit tests
puddly 462a1ff
Remove `UNDEFINED`
puddly 221fe2d
Only restore (most) light state attributes if they are not `None`
puddly 26874c1
Fix `number` entity name
puddly b8d5c57
Revert `cached_property` -> `property` change
puddly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.