hass-core/tests/helpers/test_system_info.py
Paulus Schoutsen cb07ea0d60
RFC: Add system health component ()
* Add system health component

* Remove stale comment

* Fix confusing syntax

* Update test_init.py

* Address comments

* Lint

* Move distro check to updater

* Convert to websocket

* Lint

* Make info callback async

* Fix tests

* Fix tests

* Lint

* Catch exceptions
2019-01-30 10:57:53 -08:00

12 lines
378 B
Python

"""Tests for the system info helper."""
import json
from homeassistant.const import __version__ as current_version
async def test_get_system_info(hass):
"""Test the get system info."""
info = await hass.helpers.system_info.async_get_system_info()
assert isinstance(info, dict)
assert info['version'] == current_version
assert json.dumps(info) is not None