2019-01-30 18:57:53 +00:00
|
|
|
"""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)
|
2019-07-31 19:25:30 +00:00
|
|
|
assert info["version"] == current_version
|
2019-01-30 18:57:53 +00:00
|
|
|
assert json.dumps(info) is not None
|