mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-09 10:59:43 +00:00
HomeAssistant API token (#303)
* Add a uuid to home-assistant * Add API_TOKEN to homeassistant * Update homeassistant.py * Update addon.py
This commit is contained in:
@@ -82,7 +82,7 @@ class DockerAddon(DockerInterface):
|
||||
|
||||
# Set api token if any API access is needed
|
||||
if self.addon.access_hassio_api or self.addon.access_homeassistant_api:
|
||||
addon_env['API_TOKEN'] = self.addon.api_token
|
||||
addon_env['HASSIO_TOKEN'] = self.addon.uuid
|
||||
|
||||
return {
|
||||
**addon_env,
|
||||
|
||||
Reference in New Issue
Block a user