Fix time trigger description pointing to entity (#13786)

This commit is contained in:
Franck Nijhof 2022-09-19 10:11:56 +02:00 committed by GitHub
parent 05515f21c3
commit 50b67751d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,7 +189,7 @@ export const describeTrigger = (
// Time Trigger
if (trigger.platform === "time" && trigger.at) {
const at = trigger.at.includes(".")
? hass.states[trigger.at] || trigger.at
? `entity ${computeStateName(hass.states[trigger.at]) || trigger.at}`
: trigger.at;
return `When the time is equal to ${at}`;