Conversation
maxandersen
reviewed
Feb 12, 2019
homeassistant_cli/plugins/system.py
Outdated
| """Get system health from Home Assistant.""" | ||
| frame = {'type': 'system_health/info'} | ||
|
|
||
| click.echo(api.wsapi(ctx, frame, False)) |
Contributor
There was a problem hiding this comment.
good idea. should add a call to format here with some default columns so it works with the formatting flags.
c8eb553 to
b5faec4
Compare
Contributor
|
added proper formatting and rebased on latest dev. |
b5faec4 to
717e17e
Compare
maxandersen
pushed a commit
that referenced
this pull request
Feb 20, 2019
* Add support for system health * fix(health): proper formatting of system health
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
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.
Add support for the System health component.
$ hass-cli system health {'id': 1, 'type': 'result', 'success': True, 'result': {'homeassistant': {'version': '0.88.0.dev0', 'dev': True, 'hassio': False, 'virtualenv': True, 'python_version': '3.7.2', 'docker': False, 'arch': 'x86_64', 'timezone': 'Europe/Zurich', 'os_name': 'Linux'}, 'lovelace': {'mode': 'storage', 'resources': 0, 'views': 2}}}