mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 07:06:30 +00:00
Fix API for home-assistant (#588)
* Fix API for home-assistant * Update API.md
This commit is contained in:
parent
70005296cc
commit
5db798bcf8
1
API.md
1
API.md
@ -381,6 +381,7 @@ Output is the raw Docker log.
|
|||||||
"port": "port for access hass",
|
"port": "port for access hass",
|
||||||
"ssl": "bool",
|
"ssl": "bool",
|
||||||
"password": "",
|
"password": "",
|
||||||
|
"refresh_token": "",
|
||||||
"watchdog": "bool",
|
"watchdog": "bool",
|
||||||
"startup_time": 600
|
"startup_time": 600
|
||||||
}
|
}
|
||||||
|
@ -123,7 +123,7 @@ class APIHomeAssistant(CoreSysAttributes):
|
|||||||
@api_process
|
@api_process
|
||||||
def start(self, request):
|
def start(self, request):
|
||||||
"""Start homeassistant."""
|
"""Start homeassistant."""
|
||||||
asyncio.shield(self.sys_homeassistant.start())
|
return asyncio.shield(self.sys_homeassistant.start())
|
||||||
|
|
||||||
@api_process
|
@api_process
|
||||||
def restart(self, request):
|
def restart(self, request):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user