-
Notifications
You must be signed in to change notification settings - Fork 2
Thing Setting syntax and implementation overhaul #110
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
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
95c83ab
Exploring making persistant properties instead of settings
julianstirling 9680e9b
Have settings dictionary generated on the fly for saving by a Thing m…
julianstirling c06b097
Removing unused settings dict features
julianstirling c84a0ee
Give thing settings a way to share a JSON serialisable form version
julianstirling 7749ce3
ruff formatting
julianstirling bdc3352
Removing ad hoc test methods like get_raw and instead handling BaseMo…
julianstirling 40c9ef4
Remove vestigial code
julianstirling 125092f
Change the names for setting/property descriptors, add some docstrings
julianstirling bb214f1
Update PropertyDescriptor to ThingProperty in all examples and tests
julianstirling 941b520
Fix typehint in setting storage path
julianstirling e4afc1b
Update docstrings for Thing Setting changes
julianstirling 5af35ed
Add unit tests and docstrings. Also add pathcheck when addign a thing
julianstirling 06eaf4a
Add small section on Properties vs Settings in the docs
julianstirling 919db28
Add clarification that settings must be explicitly set to save
julianstirling e5fbd4f
Update error message for changed event on property
julianstirling 01af5bb
Removed outdated TODO
julianstirling 2f880a4
Apply suggestions from code review
julianstirling 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from .action import ActionDescriptor as ActionDescriptor | ||
from .property import PropertyDescriptor as PropertyDescriptor | ||
from .property import ThingProperty as ThingProperty | ||
from .property import ThingSetting as ThingSetting | ||
from .endpoint import EndpointDescriptor as EndpointDescriptor | ||
from .endpoint import HTTPMethod as HTTPMethod |
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
Oops, something went wrong.
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.