mirror of
https://github.com/home-assistant/core.git
synced 2025-07-11 15:27:08 +00:00
Reduce scope of diagnostics tests for rtsp_to_webrtc to not depend on global state (#115422)
This commit is contained in:
parent
f558121752
commit
6c1bc2a9f4
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
from .conftest import ComponentSetup
|
from .conftest import ComponentSetup
|
||||||
@ -21,13 +19,9 @@ async def test_entry_diagnostics(
|
|||||||
config_entry: MockConfigEntry,
|
config_entry: MockConfigEntry,
|
||||||
rtsp_to_webrtc_client: Any,
|
rtsp_to_webrtc_client: Any,
|
||||||
setup_integration: ComponentSetup,
|
setup_integration: ComponentSetup,
|
||||||
freezer: FrozenDateTimeFactory,
|
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test config entry diagnostics."""
|
"""Test config entry diagnostics."""
|
||||||
await setup_integration()
|
await setup_integration()
|
||||||
|
|
||||||
assert await get_diagnostics_for_config_entry(hass, hass_client, config_entry) == {
|
result = await get_diagnostics_for_config_entry(hass, hass_client, config_entry)
|
||||||
"discovery": {"attempt": 1, "web.failure": 1, "webrtc.success": 1},
|
assert "webrtc" in result
|
||||||
"web": {},
|
|
||||||
"webrtc": {},
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user