mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Improve Supervisor addon_running test fixture (#142525)
This commit is contained in:
parent
894cc7cc4d
commit
cb09207cd7
@ -151,8 +151,7 @@ def mock_addon_installed(
|
||||
|
||||
def mock_addon_running(addon_store_info: AsyncMock, addon_info: AsyncMock) -> AsyncMock:
|
||||
"""Mock add-on already running."""
|
||||
addon_store_info.return_value.available = True
|
||||
addon_store_info.return_value.installed = True
|
||||
mock_addon_installed(addon_store_info, addon_info)
|
||||
addon_info.return_value.state = "started"
|
||||
return addon_info
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user