mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 22:55:10 +02:00
Increase Supervisor add-on helper timeout (#43778)
This commit is contained in:
@@ -159,7 +159,7 @@ async def async_uninstall_addon(hass: HomeAssistantType, slug: str) -> dict:
|
|||||||
"""
|
"""
|
||||||
hassio = hass.data[DOMAIN]
|
hassio = hass.data[DOMAIN]
|
||||||
command = f"/addons/{slug}/uninstall"
|
command = f"/addons/{slug}/uninstall"
|
||||||
return await hassio.send_command(command)
|
return await hassio.send_command(command, timeout=60)
|
||||||
|
|
||||||
|
|
||||||
@bind_hass
|
@bind_hass
|
||||||
@@ -183,7 +183,7 @@ async def async_stop_addon(hass: HomeAssistantType, slug: str) -> dict:
|
|||||||
"""
|
"""
|
||||||
hassio = hass.data[DOMAIN]
|
hassio = hass.data[DOMAIN]
|
||||||
command = f"/addons/{slug}/stop"
|
command = f"/addons/{slug}/stop"
|
||||||
return await hassio.send_command(command)
|
return await hassio.send_command(command, timeout=60)
|
||||||
|
|
||||||
|
|
||||||
@bind_hass
|
@bind_hass
|
||||||
|
Reference in New Issue
Block a user