-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow passing of json/yaml argument to service call
When calling service who needs arguments which are other things than strings, ex nested dicts, its easiest done by being able to pass a json or yaml argument, for example when calling html5.dismis: hass-cli service call html5.dismiss --json '{"target": "DEVICE", "data": {"tag": "TAG"}}' As requested in review, this also adds support for passing in @filename or - for reading arguments from stdin or from a file. Signed-off-by: Anton Lundin <[email protected]>
- Loading branch information
Showing
3 changed files
with
213 additions
and
7 deletions.
There are no files selected for viewing
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
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
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