Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: Add system health component #20436

Merged
merged 14 commits into from
Jan 30, 2019
Prev Previous commit
Next Next commit
Fix tests
  • Loading branch information
balloob committed Jan 29, 2019
commit 51af138ba6c2231e8c4d873ef6b413d0a6d503b6
8 changes: 4 additions & 4 deletions tests/components/system_health/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@


@pytest.fixture
def mock_system_info():
def mock_system_info(hass):
"""Mock system info."""
with patch('homeassistant.helpers.system_info.async_get_system_info',
Mock(return_value=mock_coro({'hello': True}))):
yield
hass.helpers.system_info.async_get_system_info = Mock(
return_value=mock_coro({'hello': True})
)


async def test_info_endpoint_return_info(hass, hass_ws_client,
Expand Down