Skip to content

Add support for system health#172

Merged
fabaff merged 2 commits intodevfrom
system_health
Feb 15, 2019
Merged

Add support for system health#172
fabaff merged 2 commits intodevfrom
system_health

Conversation

@fabaff
Copy link
Copy Markdown
Member

@fabaff fabaff commented Feb 12, 2019

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}}}

"""Get system health from Home Assistant."""
frame = {'type': 'system_health/info'}

click.echo(api.wsapi(ctx, frame, False))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea. should add a call to format here with some default columns so it works with the formatting flags.

@maxandersen
Copy link
Copy Markdown
Contributor

added proper formatting and rebased on latest dev.

@fabaff fabaff merged commit a51ecf7 into dev Feb 15, 2019
@delete-merged-branch delete-merged-branch bot deleted the system_health branch February 15, 2019 12:28
maxandersen pushed a commit that referenced this pull request Feb 20, 2019
* Add support for system health

* fix(health): proper formatting of system health
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants