Merge pull request #1703 from home-assistant/dev

Release 221
This commit is contained in:
Pascal Vizeli 2020-05-07 19:02:31 +02:00 committed by GitHub
commit acf921f55d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
35 changed files with 102073 additions and 46 deletions

@ -1 +1 @@
Subproject commit 5ca63a80522a867557de20fe7bda0592e8f06e7e
Subproject commit ca1cc7ed0dd49efbf1cd510474f028b7b8db313f

View File

@ -6,7 +6,7 @@ colorlog==4.1.0
cpe==1.2.1
cryptography==2.9.2
docker==4.2.0
gitpython==3.1.1
gitpython==3.1.2
jinja2==2.11.2
packaging==20.3
ptvsd==4.3.2

View File

@ -1,5 +1,5 @@
flake8==3.7.9
pylint==2.5.0
pylint==2.5.2
pytest==5.4.1
pytest-timeout==1.3.4
pytest-aiohttp==0.3.0

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1,27 @@
(self["webpackJsonp"] = self["webpackJsonp"] || []).push([[9],[
/* 0 */,
/* 1 */
/***/ (function(module, exports) {
var documentContainer = document.createElement("template");
documentContainer.setAttribute("style", "display: none;");
documentContainer.innerHTML = "<style>\n@font-face {\nfont-family: \"Roboto\";\nsrc:\n local(\"Roboto Thin\"),\n local(\"Roboto-Thin\"),\n url(/static/fonts/roboto/Roboto-Thin.woff2) format(\"woff2\");\nfont-weight: 100;\nfont-style: normal;\n}\n@font-face {\nfont-family: \"Roboto\";\nsrc:\n local(\"Roboto Thin Italic\"),\n local(\"Roboto-ThinItalic\"),\n url(/static/fonts/roboto/Roboto-ThinItalic.woff2) format(\"woff2\");\nfont-weight: 100;\nfont-style: italic;\n}\n@font-face {\nfont-family: \"Roboto\";\nsrc:\n local(\"Roboto Light\"),\n local(\"Roboto-Light\"),\n url(/static/fonts/roboto/Roboto-Light.woff2) format(\"woff2\");\nfont-weight: 300;\nfont-style: normal;\n}\n@font-face {\nfont-family: \"Roboto\";\nsrc:\n local(\"Roboto Light Italic\"),\n local(\"Roboto-LightItalic\"),\n url(/static/fonts/roboto/Roboto-LightItalic.woff2) format(\"woff2\");\nfont-weight: 300;\nfont-style: italic;\n}\n@font-face {\nfont-family: \"Roboto\";\nsrc:\n local(\"Roboto Regular\"),\n local(\"Roboto-Regular\"),\n url(/static/fonts/roboto/Roboto-Regular.woff2) format(\"woff2\");\nfont-weight: 400;\nfont-style: normal;\n}\n@font-face {\nfont-family: \"Roboto\";\nsrc:\n local(\"Roboto Italic\"),\n local(\"Roboto-Italic\"),\n url(/static/fonts/roboto/Roboto-RegularItalic.woff2) format(\"woff2\");\nfont-weight: 400;\nfont-style: italic;\n}\n@font-face {\nfont-family: \"Roboto\";\nsrc:\n local(\"Roboto Medium\"),\n local(\"Roboto-Medium\"),\n url(/static/fonts/roboto/Roboto-Medium.woff2) format(\"woff2\");\nfont-weight: 500;\nfont-style: normal;\n}\n@font-face {\nfont-family: \"Roboto\";\nsrc:\n local(\"Roboto Medium Italic\"),\n local(\"Roboto-MediumItalic\"),\n url(/static/fonts/roboto/Roboto-MediumItalic.woff2) format(\"woff2\");\nfont-weight: 500;\nfont-style: italic;\n}\n@font-face {\nfont-family: \"Roboto\";\nsrc:\n local(\"Roboto Bold\"),\n local(\"Roboto-Bold\"),\n url(/static/fonts/roboto/Roboto-Bold.woff2) format(\"woff2\");\nfont-weight: 700;\nfont-style: normal;\n}\n@font-face {\nfont-family: \"Roboto\";\nsrc:\n local(\"Roboto Bold Italic\"),\n local(\"Roboto-BoldItalic\"),\n url(/static/fonts/roboto/Roboto-BoldItalic.woff2) format(\"woff2\");\nfont-weight: 700;\nfont-style: italic;\n}\n@font-face {\nfont-family: \"Roboto\";\nsrc:\n local(\"Roboto Black\"),\n local(\"Roboto-Black\"),\n url(/static/fonts/roboto/Roboto-Black.woff2) format(\"woff2\");\nfont-weight: 900;\nfont-style: normal;\n}\n@font-face {\nfont-family: \"Roboto\";\nsrc:\n local(\"Roboto Black Italic\"),\n local(\"Roboto-BlackItalic\"),\n url(/static/fonts/roboto/Roboto-BlackItalic.woff2) format(\"woff2\");\nfont-weight: 900;\nfont-style: italic;\n}\n</style>";
document.head.appendChild(documentContainer.content);
/**
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*
FIXME(polymer-modulizer): the above comments were extracted
from HTML and may be out of place here. Review them and
then delete this comment!
*/
/***/ })
]]);

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1,35 @@
(self["webpackJsonp"] = self["webpackJsonp"] || []).push([[1],{
/***/ 191:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "codeMirror", function() { return codeMirror; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "codeMirrorCss", function() { return codeMirrorCss; });
/* harmony import */ var codemirror__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(54);
/* harmony import */ var codemirror__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(codemirror__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var codemirror_lib_codemirror_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(181);
/* harmony import */ var codemirror_mode_jinja2_jinja2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(182);
/* harmony import */ var codemirror_mode_jinja2_jinja2__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(codemirror_mode_jinja2_jinja2__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var codemirror_mode_yaml_yaml__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(183);
/* harmony import */ var codemirror_mode_yaml_yaml__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(codemirror_mode_yaml_yaml__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _common_dom_fire_event__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12);
// @ts-ignore
// @ts-ignore
codemirror__WEBPACK_IMPORTED_MODULE_0___default.a.commands.save = function (cm) {
Object(_common_dom_fire_event__WEBPACK_IMPORTED_MODULE_4__[/* fireEvent */ "a"])(cm.getWrapperElement(), "editor-save");
};
var codeMirror = codemirror__WEBPACK_IMPORTED_MODULE_0___default.a;
var codeMirrorCss = codemirror_lib_codemirror_css__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"];
/***/ })
}]);

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1,2 +1,225 @@
!function(e){function n(n){for(var t,o,a=n[0],i=n[1],f=0,u=[];f<a.length;f++)o=a[f],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&u.push(r[o][0]),r[o]=0;for(t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t]);for(c&&c(n);u.length;)u.shift()()}var t={},r={6:0};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var n=[],t=r[e];if(0!==t)if(t)n.push(t[2]);else{var a=new Promise(function(n,o){t=r[e]=[n,o]});n.push(t[2]=a);var i,f=document.createElement("script");f.charset="utf-8",f.timeout=120,o.nc&&f.setAttribute("nonce",o.nc),f.src=function(e){return o.p+"chunk."+{0:"0f20b7eb2535b079dbfe",1:"a39fb4d3ed3ccadb5a51",2:"f7d306a2e5587e09c173",3:"2efa3db34abe2c94f3f1",4:"5fb0086a3916d44eae35",5:"c6b146bc72a8670a51b9",7:"4caf65292b82df27c80d",8:"257952ea452437810f3f",9:"bf3d759454e15125e26b",10:"a87cb6b23bf028d87ce9",11:"fe148846d407d0e17a67",12:"b2dce600432c76a53d8c",13:"f2c973e64a56e2fab7c5",14:"9b52b3714af8aa55d380",15:"af4e8649a8bf6cace848"}[e]+".js"}(e);var c=new Error;i=function(n){f.onerror=f.onload=null,clearTimeout(u);var t=r[e];if(0!==t){if(t){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,t[1](c)}r[e]=void 0}};var u=setTimeout(function(){i({type:"timeout",target:f})},12e4);f.onerror=f.onload=i,document.head.appendChild(f)}return Promise.all(n)},o.m=e,o.c=t,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,n){if(1&n&&(e=o(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)o.d(t,r,function(n){return e[n]}.bind(null,r));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="/api/hassio/app/",o.oe=function(e){throw console.error(e),e};var a=self.webpackJsonp=self.webpackJsonp||[],i=a.push.bind(a);a.push=n,a=a.slice();for(var f=0;f<a.length;f++)n(a[f]);var c=i;o(o.s=0)}([function(e,n,t){window.loadES5Adapter().then(function(){t.e(12).then(t.t.bind(null,1,7)),Promise.all([t.e(1),t.e(8)]).then(t.bind(null,4)),Promise.all([t.e(1),t.e(15),t.e(10)]).then(t.bind(null,3))});var r=document.createElement("style");r.innerHTML="\nbody {\n font-family: Roboto, sans-serif;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-weight: 400;\n margin: 0;\n padding: 0;\n height: 100vh;\n}\n",document.head.appendChild(r)},,function(e,n){if("undefined"==typeof esprima){var t=new Error("Cannot find module 'esprima'");throw t.code="MODULE_NOT_FOUND",t}e.exports=esprima}]);
//# sourceMappingURL=entrypoint.js.map
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/
/******/
/******/ // add "moreModules" to the modules object,
/******/ // then flag all "chunkIds" as loaded and fire callback
/******/ var moduleId, chunkId, i = 0, resolves = [];
/******/ for(;i < chunkIds.length; i++) {
/******/ chunkId = chunkIds[i];
/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ resolves.push(installedChunks[chunkId][0]);
/******/ }
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ for(moduleId in moreModules) {
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
/******/ modules[moduleId] = moreModules[moduleId];
/******/ }
/******/ }
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
/******/
/******/ while(resolves.length) {
/******/ resolves.shift()();
/******/ }
/******/
/******/ };
/******/
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
/******/ // Promise = chunk loading, 0 = chunk loaded
/******/ var installedChunks = {
/******/ 5: 0
/******/ };
/******/
/******/
/******/
/******/ // script path function
/******/ function jsonpScriptSrc(chunkId) {
/******/ return __webpack_require__.p + "chunk." + {"0":"2fc4abe2797d5b225522","1":"a155352518b31c5b28c4","2":"5fc6b1b0b3ba0b00dc02","3":"7e4e863699408dc5d3f5","4":"d08180c2ee3183a149f4","6":"aa2617a1b92d3c2ceba8","7":"8fce7a70d26a42912747","8":"471576619b80be2a9a29","9":"58ad269f3d046fed31b8","10":"066811ee56df2879fa62","11":"9487f86e4dfa94842721","12":"212065a6c485fbc07bb8"}[chunkId] + ".js"
/******/ }
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ var promises = [];
/******/
/******/
/******/ // JSONP chunk loading for javascript
/******/
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunkData) {
/******/ promises.push(installedChunkData[2]);
/******/ } else {
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ promises.push(installedChunkData[2] = promise);
/******/
/******/ // start chunk loading
/******/ var script = document.createElement('script');
/******/ var onScriptComplete;
/******/
/******/ script.charset = 'utf-8';
/******/ script.timeout = 120;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = jsonpScriptSrc(chunkId);
/******/
/******/ // create error before stack unwound to get useful stacktrace later
/******/ var error = new Error();
/******/ onScriptComplete = function (event) {
/******/ // avoid mem leaks in IE.
/******/ script.onerror = script.onload = null;
/******/ clearTimeout(timeout);
/******/ var chunk = installedChunks[chunkId];
/******/ if(chunk !== 0) {
/******/ if(chunk) {
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
/******/ var realSrc = event && event.target && event.target.src;
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
/******/ error.name = 'ChunkLoadError';
/******/ error.type = errorType;
/******/ error.request = realSrc;
/******/ chunk[1](error);
/******/ }
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ var timeout = setTimeout(function(){
/******/ onScriptComplete({ type: 'timeout', target: script });
/******/ }, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
/******/ document.head.appendChild(script);
/******/ }
/******/ }
/******/ return Promise.all(promises);
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "/api/hassio/app/";
/******/
/******/ // on error function for async loading
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ var jsonpArray = self["webpackJsonp"] = self["webpackJsonp"] || [];
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
/******/ jsonpArray.push = webpackJsonpCallback;
/******/ jsonpArray = jsonpArray.slice();
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
/******/ var parentJsonpFunction = oldJsonpFunction;
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {
window.loadES5Adapter().then(function () {
// eslint-disable-next-line
__webpack_require__.e(/* import() | roboto */ 9).then(__webpack_require__.t.bind(null, 1, 7)); // eslint-disable-next-line
Promise.all(/* import() | hassio-main */[__webpack_require__.e(12), __webpack_require__.e(8)]).then(__webpack_require__.bind(null, 3));
});
var styleEl = document.createElement("style");
styleEl.innerHTML = "\nbody {\n font-family: Roboto, sans-serif;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-weight: 400;\n margin: 0;\n padding: 0;\n height: 100vh;\n}\n";
document.head.appendChild(styleEl);
/***/ }),
/* 1 */,
/* 2 */
/***/ (function(module, exports) {
if(typeof esprima === 'undefined') {var e = new Error("Cannot find module 'esprima'"); e.code = 'MODULE_NOT_FOUND'; throw e;}
module.exports = esprima;
/***/ })
/******/ ]);

View File

@ -1,43 +1,16 @@
{
"vendors~confirmation~hassio-addon-dashboard.js": "/api/hassio/app/chunk.0f20b7eb2535b079dbfe.js",
"vendors~confirmation~hassio-addon-dashboard.js.map": "/api/hassio/app/chunk.0f20b7eb2535b079dbfe.js.map",
"vendors~hassio-icons~hassio-main.js": "/api/hassio/app/chunk.a39fb4d3ed3ccadb5a51.js",
"vendors~hassio-icons~hassio-main.js.map": "/api/hassio/app/chunk.a39fb4d3ed3ccadb5a51.js.map",
"codemirror.js": "/api/hassio/app/chunk.f7d306a2e5587e09c173.js",
"codemirror.js.map": "/api/hassio/app/chunk.f7d306a2e5587e09c173.js.map",
"confirmation.js": "/api/hassio/app/chunk.2efa3db34abe2c94f3f1.js",
"confirmation.js.map": "/api/hassio/app/chunk.2efa3db34abe2c94f3f1.js.map",
"dialog-hassio-markdown.js": "/api/hassio/app/chunk.5fb0086a3916d44eae35.js",
"dialog-hassio-markdown.js.map": "/api/hassio/app/chunk.5fb0086a3916d44eae35.js.map",
"dialog-hassio-snapshot.js": "/api/hassio/app/chunk.c6b146bc72a8670a51b9.js",
"dialog-hassio-snapshot.js.map": "/api/hassio/app/chunk.c6b146bc72a8670a51b9.js.map",
"vendors~confirmation~hassio-addon-dashboard.js": "/api/hassio/app/chunk.2fc4abe2797d5b225522.js",
"codemirror.js": "/api/hassio/app/chunk.a155352518b31c5b28c4.js",
"confirmation.js": "/api/hassio/app/chunk.5fc6b1b0b3ba0b00dc02.js",
"dialog-hassio-markdown.js": "/api/hassio/app/chunk.7e4e863699408dc5d3f5.js",
"dialog-hassio-snapshot.js": "/api/hassio/app/chunk.d08180c2ee3183a149f4.js",
"entrypoint.js": "/api/hassio/app/entrypoint.js",
"entrypoint.js.map": "/api/hassio/app/entrypoint.js.map",
"hassio-addon-dashboard.js": "/api/hassio/app/chunk.4caf65292b82df27c80d.js",
"hassio-addon-dashboard.js.map": "/api/hassio/app/chunk.4caf65292b82df27c80d.js.map",
"hassio-icons.js": "/api/hassio/app/chunk.257952ea452437810f3f.js",
"hassio-icons.js.map": "/api/hassio/app/chunk.257952ea452437810f3f.js.map",
"hassio-ingress-view.js": "/api/hassio/app/chunk.bf3d759454e15125e26b.js",
"hassio-ingress-view.js.map": "/api/hassio/app/chunk.bf3d759454e15125e26b.js.map",
"hassio-main.js": "/api/hassio/app/chunk.a87cb6b23bf028d87ce9.js",
"hassio-main.js.map": "/api/hassio/app/chunk.a87cb6b23bf028d87ce9.js.map",
"mdi-icons.js": "/api/hassio/app/chunk.fe148846d407d0e17a67.js",
"mdi-icons.js.map": "/api/hassio/app/chunk.fe148846d407d0e17a67.js.map",
"roboto.js": "/api/hassio/app/chunk.b2dce600432c76a53d8c.js",
"roboto.js.map": "/api/hassio/app/chunk.b2dce600432c76a53d8c.js.map",
"vendors~codemirror.js": "/api/hassio/app/chunk.f2c973e64a56e2fab7c5.js",
"vendors~codemirror.js.map": "/api/hassio/app/chunk.f2c973e64a56e2fab7c5.js.map",
"vendors~hassio-addon-dashboard.js": "/api/hassio/app/chunk.9b52b3714af8aa55d380.js",
"vendors~hassio-addon-dashboard.js.map": "/api/hassio/app/chunk.9b52b3714af8aa55d380.js.map",
"vendors~hassio-main.js": "/api/hassio/app/chunk.af4e8649a8bf6cace848.js",
"vendors~hassio-main.js.map": "/api/hassio/app/chunk.af4e8649a8bf6cace848.js.map",
"264283c05b3002fb79ff.worker.js": "/api/hassio/app/264283c05b3002fb79ff.worker.js",
"264283c05b3002fb79ff.worker.js.map": "/api/hassio/app/264283c05b3002fb79ff.worker.js.map",
"chunk.0f20b7eb2535b079dbfe.js.LICENSE": "/api/hassio/app/chunk.0f20b7eb2535b079dbfe.js.LICENSE",
"chunk.2efa3db34abe2c94f3f1.js.LICENSE": "/api/hassio/app/chunk.2efa3db34abe2c94f3f1.js.LICENSE",
"chunk.5fb0086a3916d44eae35.js.LICENSE": "/api/hassio/app/chunk.5fb0086a3916d44eae35.js.LICENSE",
"chunk.9b52b3714af8aa55d380.js.LICENSE": "/api/hassio/app/chunk.9b52b3714af8aa55d380.js.LICENSE",
"chunk.a39fb4d3ed3ccadb5a51.js.LICENSE": "/api/hassio/app/chunk.a39fb4d3ed3ccadb5a51.js.LICENSE",
"chunk.af4e8649a8bf6cace848.js.LICENSE": "/api/hassio/app/chunk.af4e8649a8bf6cace848.js.LICENSE",
"chunk.c6b146bc72a8670a51b9.js.LICENSE": "/api/hassio/app/chunk.c6b146bc72a8670a51b9.js.LICENSE"
"hassio-addon-dashboard.js": "/api/hassio/app/chunk.aa2617a1b92d3c2ceba8.js",
"hassio-ingress-view.js": "/api/hassio/app/chunk.8fce7a70d26a42912747.js",
"hassio-main.js": "/api/hassio/app/chunk.471576619b80be2a9a29.js",
"roboto.js": "/api/hassio/app/chunk.58ad269f3d046fed31b8.js",
"vendors~codemirror.js": "/api/hassio/app/chunk.066811ee56df2879fa62.js",
"vendors~hassio-addon-dashboard.js": "/api/hassio/app/chunk.9487f86e4dfa94842721.js",
"vendors~hassio-main.js": "/api/hassio/app/chunk.212065a6c485fbc07bb8.js",
"7e78115f8d410990252b.worker.js": "/api/hassio/app/7e78115f8d410990252b.worker.js"
}

View File

@ -3,7 +3,7 @@ from enum import Enum
from ipaddress import ip_network
from pathlib import Path
SUPERVISOR_VERSION = "220"
SUPERVISOR_VERSION = "221"
URL_HASSIO_ADDONS = "https://github.com/home-assistant/hassio-addons"

View File

@ -0,0 +1,21 @@
"""Discovery service for Zwave MQTT."""
import voluptuous as vol
from supervisor.validate import network_port
from ..const import (
ATTR_HOST,
ATTR_PASSWORD,
ATTR_PORT,
ATTR_USERNAME,
)
# pylint: disable=no-value-for-parameter
SCHEMA = vol.Schema(
{
vol.Required(ATTR_HOST): vol.Coerce(str),
vol.Required(ATTR_PORT): network_port,
vol.Required(ATTR_USERNAME): vol.Coerce(str),
vol.Required(ATTR_PASSWORD): vol.Coerce(str),
}
)

View File

@ -0,0 +1,24 @@
"""Test Zwave MQTT discovery."""
import voluptuous as vol
import pytest
from supervisor.discovery.validate import valid_discovery_config
def test_good_config():
"""Test good zwave mqtt config."""
valid_discovery_config(
"zwave_mqtt",
{"host": "test", "port": 3812, "username": "bla", "password": "test"},
)
def test_bad_config():
"""Test good zwave mqtt config."""
with pytest.raises(vol.Invalid):
valid_discovery_config(
"zwave_mqtt", {"host": "test", "username": "bla", "ssl": True}
)