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

Improve Axis tests (#42183)

This commit is contained in:
Robert Svensson
2020-10-22 09:29:53 +02:00
committed by GitHub
parent 148a7ff50c
commit e54f4aa9ed
7 changed files with 143 additions and 96 deletions

View File

@@ -51,7 +51,8 @@ async def test_setup_entry_fails(hass):
async def test_unload_entry(hass):
"""Test successful unload of entry."""
device = await setup_axis_integration(hass)
config_entry = await setup_axis_integration(hass)
device = hass.data[AXIS_DOMAIN][config_entry.unique_id]
assert hass.data[AXIS_DOMAIN]
assert await hass.config_entries.async_unload(device.config_entry.entry_id)