mirror of
https://github.com/elisspace/core.git
synced 2026-09-29 05:49:53 +00:00
Reolink check firmware (#88903)
This commit is contained in:
@@ -100,6 +100,7 @@ async def test_no_repair_issue(
|
||||
issue_registry = ir.async_get(hass)
|
||||
assert (const.DOMAIN, "https_webhook") not in issue_registry.issues
|
||||
assert (const.DOMAIN, "enable_port") not in issue_registry.issues
|
||||
assert (const.DOMAIN, "firmware_update") not in issue_registry.issues
|
||||
|
||||
|
||||
async def test_https_repair_issue(
|
||||
@@ -135,3 +136,15 @@ async def test_port_repair_issue(
|
||||
|
||||
issue_registry = ir.async_get(hass)
|
||||
assert (const.DOMAIN, "enable_port") in issue_registry.issues
|
||||
|
||||
|
||||
async def test_firmware_repair_issue(
|
||||
hass: HomeAssistant, config_entry: MockConfigEntry, reolink_connect: MagicMock
|
||||
) -> None:
|
||||
"""Test firmware issue is raised when too old firmware is used."""
|
||||
reolink_connect.sw_version_update_required = True
|
||||
assert await hass.config_entries.async_setup(config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
issue_registry = ir.async_get(hass)
|
||||
assert (const.DOMAIN, "firmware_update") in issue_registry.issues
|
||||
|
||||
Reference in New Issue
Block a user