20 lines
546 B
Python
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,
|
||
|
}
|