1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-23 20:39:01 +00:00
Files
core/tests/components/litejet/test_diagnostics.py
2023-01-25 16:41:59 +01:00

20 lines
546 B
Python

"""The tests for the litejet component."""
from . import async_init_integration
from tests.components.diagnostics import get_diagnostics_for_config_entry
async def test_diagnostics(hass, hass_client, mock_litejet):
"""Test getting the LiteJet diagnostics."""
config_entry = await async_init_integration(hass)
diag = await get_diagnostics_for_config_entry(hass, hass_client, config_entry)
assert diag == {
"loads": [1, 2],
"button_switches": [1, 2],
"scenes": [1, 2],
"connected": True,
}