1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Add diagnostics file export to generic camera (#71492)

This commit is contained in:
Dave T
2022-05-13 18:27:08 +01:00
committed by GitHub
parent 9bd508c0bf
commit 807df530bc
3 changed files with 108 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
"""Test generic (IP camera) diagnostics."""
from homeassistant.components.diagnostics import REDACTED
from tests.components.diagnostics import get_diagnostics_for_config_entry
async def test_entry_diagnostics(hass, hass_client, setup_entry):
"""Test config entry diagnostics."""
assert await get_diagnostics_for_config_entry(hass, hass_client, setup_entry) == {
"title": "Test Camera",
"data": {},
"options": {
"still_image_url": "http://****:****@example.com/****?****=****",
"stream_source": "http://****:****@example.com/****",
"username": REDACTED,
"password": REDACTED,
"limit_refetch_to_url_change": False,
"authentication": "basic",
"framerate": 2.0,
"verify_ssl": True,
"content_type": "image/jpeg",
},
}