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
Be able to change dicts/lists via CLI plugin #118
Closed
Closed
Conversation
This file contains 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
…t this plugin is depricated
- start/stop of services only visible in developer mode - added display which deamon is running for KNX (knxd/eibd)
- start/stop of services only visible in developer mode - added display which deamon is running for KNX (knxd/eibd)
visu_smartvisu: Fixed possible case of referencing an uninitialized ver
visu_smartvisu: Fixed possible case of referencing an uninitialized var
bugfix for reading coil registers
…md5password Backend Plugin: Allow hashed passwords in configuration
# usually 3.0.0 with unicode support is installed but Python 3.2 does not support this
Bug fix operationlog and gpio plugins + small item update for multiclick logic
Enable and disable logics
… due to modification in logics.py)
…folded by clicking on the black arrow.
This was referenced Sep 4, 2016
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
(copied from mknx/smarthome#165)
Currently only simple types (like str, int, ...) can be changed by the CLI plugin's
up
command. This patch add support for updating items with the typedict
andlist
by using the following commands:The implementation is using
json.loads()
method, which converts the string value and then try to update with the resulting value. So passing a wrong syntax or wrong structure type will end in theItem test.dict: value ... does not match type dict. Via CLI ...
error.
Since it is implemented directly in the item's cast functions, all places updating the item values can now also use a string value for item of type dict/list. This could be a drawback and was not really inteted by this patch, but could on the other side be a handy feature.