mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-17 14:26:35 +00:00
Merge pull request #11512 from home-assistant/dev
This commit is contained in:
commit
c85236e251
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = home-assistant-frontend
|
name = home-assistant-frontend
|
||||||
version = 20220201.0
|
version = 20220202.0
|
||||||
author = The Home Assistant Authors
|
author = The Home Assistant Authors
|
||||||
author_email = hello@home-assistant.io
|
author_email = hello@home-assistant.io
|
||||||
license = Apache-2.0
|
license = Apache-2.0
|
||||||
|
@ -184,6 +184,7 @@ export const DOMAINS_WITH_MORE_INFO = [
|
|||||||
"person",
|
"person",
|
||||||
"remote",
|
"remote",
|
||||||
"script",
|
"script",
|
||||||
|
"scene",
|
||||||
"sun",
|
"sun",
|
||||||
"timer",
|
"timer",
|
||||||
"vacuum",
|
"vacuum",
|
||||||
@ -234,7 +235,7 @@ export const DOMAINS_INPUT_ROW = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
/** Domains that should have the history hidden in the more info dialog. */
|
/** Domains that should have the history hidden in the more info dialog. */
|
||||||
export const DOMAINS_MORE_INFO_NO_HISTORY = ["camera", "configurator", "scene"];
|
export const DOMAINS_MORE_INFO_NO_HISTORY = ["camera", "configurator"];
|
||||||
|
|
||||||
/** States that we consider "off". */
|
/** States that we consider "off". */
|
||||||
export const STATES_OFF = ["closed", "locked", "off"];
|
export const STATES_OFF = ["closed", "locked", "off"];
|
||||||
|
@ -120,6 +120,7 @@ export const computeStateDisplay = (
|
|||||||
if (
|
if (
|
||||||
domain === "button" ||
|
domain === "button" ||
|
||||||
domain === "input_button" ||
|
domain === "input_button" ||
|
||||||
|
domain === "scene" ||
|
||||||
(domain === "sensor" && stateObj.attributes.device_class === "timestamp")
|
(domain === "sensor" && stateObj.attributes.device_class === "timestamp")
|
||||||
) {
|
) {
|
||||||
return formatDateTime(new Date(compareState), locale);
|
return formatDateTime(new Date(compareState), locale);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user