From 350bd9c32fa743c817c8a90788268f5b1a68a9ec Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sat, 11 Apr 2020 11:16:31 +0200 Subject: [PATCH 1/4] Bump version to 217 --- supervisor/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervisor/const.py b/supervisor/const.py index 8bdb7b1b1..ef7fca2d2 100644 --- a/supervisor/const.py +++ b/supervisor/const.py @@ -3,7 +3,7 @@ from enum import Enum from ipaddress import ip_network from pathlib import Path -SUPERVISOR_VERSION = "216" +SUPERVISOR_VERSION = "217" URL_HASSIO_ADDONS = "https://github.com/home-assistant/hassio-addons" From 0bbfbd2544b15bf8fe33d248335b3fc34942de1d Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sat, 11 Apr 2020 13:35:26 +0200 Subject: [PATCH 2/4] Readd audio api --- API.md | 191 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 191 insertions(+) diff --git a/API.md b/API.md index 585abf3fd..46b3da236 100644 --- a/API.md +++ b/API.md @@ -973,6 +973,197 @@ return: } ``` +### Audio + +- GET `/audio/info` + +```json +{ + "host": "ip-address", + "version": "1", + "latest_version": "2", + "audio": { + "card": [ + { + "name": "...", + "index": 1, + "driver": "...", + "profiles": [ + { + "name": "...", + "description": "...", + "active": false + } + ] + } + ], + "input": [ + { + "name": "...", + "index": 0, + "description": "...", + "volume": 0.3, + "mute": false, + "default": false, + "card": "null|int", + "applications": [ + { + "name": "...", + "index": 0, + "stream_index": 0, + "stream_type": "INPUT", + "volume": 0.3, + "mute": false, + "addon": "" + } + ] + } + ], + "output": [ + { + "name": "...", + "index": 0, + "description": "...", + "volume": 0.3, + "mute": false, + "default": false, + "card": "null|int", + "applications": [ + { + "name": "...", + "index": 0, + "stream_index": 0, + "stream_type": "OUTPUT", + "volume": 0.3, + "mute": false, + "addon": "" + } + ] + } + ], + "application": [ + { + "name": "...", + "index": 0, + "stream_index": 0, + "stream_type": "OUTPUT", + "volume": 0.3, + "mute": false, + "addon": "" + } + ] + } +} +``` + +- POST `/audio/update` + +```json +{ + "version": "VERSION" +} +``` + +- POST `/audio/restart` + +- POST `/audio/reload` + +- GET `/audio/logs` + +- POST `/audio/volume/input` + +```json +{ + "index": "...", + "volume": 0.5 +} +``` + +- POST `/audio/volume/output` + +```json +{ + "index": "...", + "volume": 0.5 +} +``` + +- POST `/audio/volume/{output|input}/application` + +```json +{ + "index": "...", + "volume": 0.5 +} +``` + +- POST `/audio/mute/input` + +```json +{ + "index": "...", + "active": false +} +``` + +- POST `/audio/mute/output` + +```json +{ + "index": "...", + "active": false +} +``` + +- POST `/audio/mute/{output|input}/application` + +```json +{ + "index": "...", + "active": false +} +``` + +- POST `/audio/default/input` + +```json +{ + "name": "..." +} +``` + +- POST `/audio/default/output` + +```json +{ + "name": "..." +} +``` + +- POST `/audio/profile` + +```json +{ + "card": "...", + "name": "..." +} +``` + +- GET `/audio/stats` + +```json +{ + "cpu_percent": 0.0, + "memory_usage": 283123, + "memory_limit": 329392, + "memory_percent": 1.4, + "network_tx": 0, + "network_rx": 0, + "blk_read": 0, + "blk_write": 0 +} +``` + ### Auth / SSO API You can use the user system on homeassistant. We handle this auth system on From 20c118345087044c7db2c49b8d40c675379a551b Mon Sep 17 00:00:00 2001 From: Aidan Timson Date: Sat, 11 Apr 2020 13:07:19 +0100 Subject: [PATCH 3/4] Remove Azure CI badge (#1648) * Fix azure ci badge * Remove Azure CI badge --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index c6fddb5f1..84c5047c5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -[![Build Status](https://dev.azure.com/home-assistant/Hass.io/_apis/build/status/hassio?branchName=dev)](https://dev.azure.com/home-assistant/Hass.io/_build/latest?definitionId=2&branchName=dev) - # Home Assistant Supervisor ## First private cloud solution for home automation From 72b7d2a12322988e2afa5ce12c3787e453a8929b Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 12 Apr 2020 11:56:37 +0200 Subject: [PATCH 4/4] Fix restore on older snapshots (#1655) --- supervisor/snapshots/snapshot.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/supervisor/snapshots/snapshot.py b/supervisor/snapshots/snapshot.py index abbdc3919..d5cf38529 100644 --- a/supervisor/snapshots/snapshot.py +++ b/supervisor/snapshots/snapshot.py @@ -448,10 +448,6 @@ class Snapshot(CoreSysAttributes): self.sys_homeassistant.boot = self.homeassistant[ATTR_BOOT] self.sys_homeassistant.wait_boot = self.homeassistant[ATTR_WAIT_BOOT] - # Was not needed before - if self.homeassistant[ATTR_IMAGE]: - self.sys_homeassistant.image = self.homeassistant[ATTR_IMAGE] - # API/Proxy self.sys_homeassistant.api_port = self.homeassistant[ATTR_PORT] self.sys_homeassistant.api_ssl = self.homeassistant[ATTR_SSL]