diff --git a/azure-pipelines-release.yml b/azure-pipelines-release.yml
new file mode 100644
index 0000000000..26dbc41ddd
--- /dev/null
+++ b/azure-pipelines-release.yml
@@ -0,0 +1,67 @@
+# https://dev.azure.com/home-assistant
+
+trigger:
+ batch: true
+ tags:
+ include:
+ - "*"
+pr: none
+variables:
+ - name: versionBuilder
+ value: "5.2"
+ - group: github
+ - group: twine
+
+stages:
+ - stage: "Validate"
+ jobs:
+ - job: "VersionValidate"
+ pool:
+ vmImage: "ubuntu-latest"
+ steps:
+ - task: UsePythonVersion@0
+ displayName: "Use Python 3.7"
+ inputs:
+ versionSpec: "3.7"
+ - script: |
+ setup_version="$(python setup.py -V)"
+ branch_version="$(Build.SourceBranchName)"
+
+ if [ "${setup_version}" != "${branch_version}" ]; then
+ echo "Version of tag ${branch_version} don't match with ${setup_version}!"
+ exit 1
+ fi
+ displayName: "Check version of branch/tag"
+ - script: |
+ sudo apt-get install -y --no-install-recommends \
+ jq curl
+
+ release="$(Build.SourceBranchName)"
+ created_by="$(curl -s https://api.github.com/repos/home-assistant/home-assistant/releases/tags/${release} | jq --raw-output '.author.login')"
+
+ if [[ "${created_by}" =~ ^(balloob)$ ]]; then
+ exit 0
+ fi
+
+ echo "${created_by} is not allowed to create an release!"
+ exit 1
+ displayName: "Check rights"
+
+ - stage: "Build"
+ jobs:
+ - job: "ReleasePython"
+ pool:
+ vmImage: "ubuntu-latest"
+ steps:
+ - task: UsePythonVersion@0
+ displayName: "Use Python 3.7"
+ inputs:
+ versionSpec: "3.7"
+ - task: NodeTool@0
+ displayName: "Use Node 12.1"
+ inputs:
+ versionSpec: "12.1"
+ - script: pip install twine wheel
+ displayName: "Install tools"
+ - script: script/release
+ displayName: "Build and release package"
diff --git a/build-scripts/gulp/entry-html.js b/build-scripts/gulp/entry-html.js
index eb26093925..c322aac4ec 100644
--- a/build-scripts/gulp/entry-html.js
+++ b/build-scripts/gulp/entry-html.js
@@ -86,7 +86,7 @@ gulp.task("gen-index-app-dev", (done) => {
es5CoreJS: "/frontend_es5/core.js",
es5CustomPanelJS: "/frontend_es5/custom-panel.js",
es5HassIconsJS: "/frontend_es5/hass-icons.js",
- });
+ }).replace(/#THEMEC/g, "{{ theme_color }}");
fs.outputFileSync(path.resolve(config.root, "index.html"), content);
done();
diff --git a/src/common/search/search-input.ts b/src/common/search/search-input.ts
index deb36885b7..65b29881e9 100644
--- a/src/common/search/search-input.ts
+++ b/src/common/search/search-input.ts
@@ -26,7 +26,7 @@ class SearchInput extends LitElement {
@value-changed=${this._filterInputChanged}
>