Merge pull request #440 from home-assistant/addon-slug

Add slug to add-on info
This commit is contained in:
Pascal Vizeli 2018-04-11 20:01:15 +02:00 committed by GitHub
commit a785e10a3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
API.md
View File

@ -410,6 +410,7 @@ Get all available addons.
```json
{
"name": "xy bla",
"slug": "xdssd_xybla",
"description": "description",
"long_description": "null|markdown",
"auto_update": "bool",

View File

@ -106,6 +106,7 @@ class APIAddons(CoreSysAttributes):
return {
ATTR_NAME: addon.name,
ATTR_SLUG: addon.slug,
ATTR_DESCRIPTON: addon.description,
ATTR_LONG_DESCRIPTION: addon.long_description,
ATTR_VERSION: addon.version_installed,