Reduce config entry setup/unload boilerplate N-P (#49777)
This commit is contained in:
parent
6df19205da
commit
3f3f77c6e6
36 changed files with 90 additions and 389 deletions
|
@ -154,8 +154,8 @@ async def test_unload(hass):
|
|||
assert entry.data["webhook_id"] in hass.data["webhook"]
|
||||
|
||||
with patch(
|
||||
"homeassistant.config_entries.ConfigEntries.async_forward_entry_unload",
|
||||
return_value=None,
|
||||
"homeassistant.config_entries.ConfigEntries.async_unload_platforms",
|
||||
return_value=True,
|
||||
) as mock_unload:
|
||||
assert await hass.config_entries.async_unload(entry.entry_id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue