Merge pull request #3739 from home-assistant/dev

20190917.1
This commit is contained in:
Bram Kragten 2019-09-17 14:18:45 +02:00 committed by GitHub
commit 4641cd65ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name="home-assistant-frontend",
version="20190917.0",
version="20190917.1",
description="The Home Assistant frontend",
url="https://github.com/home-assistant/home-assistant-polymer",
author="The Home Assistant Authors",

View File

@ -44,14 +44,15 @@ export default function applyThemesOnElement(
if (key.startsWith("rgb")) {
return;
}
const rgbKey = `--rgb-${key}`;
if (theme[rgbKey] === undefined) {
const rgbKey = `rgb-${key}`;
if (theme[rgbKey] !== undefined) {
return;
}
element._themes[rgbKey] = "";
const prefixedRgbKey = `--${rgbKey}`;
element._themes[prefixedRgbKey] = "";
const rgbValue = hexToRgb(theme[key]);
if (rgbValue !== null) {
styles[rgbKey] = rgbValue;
styles[prefixedRgbKey] = rgbValue;
}
});
}