This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CompactHeaderEnabler { | |
enableCompactHeader(compactHeaderTheme = "compact-header"){ | |
let root = document.querySelector("html"); | |
root.style.setProperty("--card-mod-theme", compactHeaderTheme); | |
setTimeout(() => { | |
let theme = JSON.parse(localStorage.getItem("selectedTheme") || "{}"); | |
this.fireEvent("settheme",theme, document.querySelector("home-assistant")); | |
},100); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Support for the Tuya lights.""" | |
import logging | |
from homeassistant.components.light import ( | |
ATTR_BRIGHTNESS, | |
ATTR_COLOR_TEMP, | |
ATTR_HS_COLOR, | |
ENTITY_ID_FORMAT, | |
SUPPORT_BRIGHTNESS, | |
SUPPORT_COLOR, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Support for the Tuya lights.""" | |
import logging | |
from homeassistant.components.light import ( | |
ATTR_BRIGHTNESS, | |
ATTR_COLOR_TEMP, | |
ATTR_HS_COLOR, | |
ENTITY_ID_FORMAT, | |
SUPPORT_BRIGHTNESS, | |
SUPPORT_COLOR, |