Improve Supervisor addon_running test fixture (#142525)

This commit is contained in:
Martin Hjelmare
2025-04-08 14:03:16 +02:00
committed by GitHub
parent 894cc7cc4d
commit cb09207cd7

View File

@@ -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