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:
24
tests/components/generic/test_diagnostics.py
Normal file
24
tests/components/generic/test_diagnostics.py
Normal 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",
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user