Add UI for restored entities#4414
Conversation
| } | ||
|
|
||
| _computeShowRestored(stateObj) { | ||
| return !stateObj || stateObj.attributes.restored; |
There was a problem hiding this comment.
This screen won't show without State obj
There was a problem hiding this comment.
True, but it is undefined at first render...
There was a problem hiding this comment.
Right, but then guard it, because now you're implying it's restored entity if state object is not available.
| return !stateObj || stateObj.attributes.restored; | |
| return stateObj && stateObj.attributes.restored; |
"It is not currently being provided." Feels a bit disconnected from the rest. Also, the "why this happened" is missing from the explanation, besides, it doesn't have to be the integration to blame (devices can change as well). Suggestion:
The above suggestion is also using an active voice. |
|
Oh, can we make the "Remove entity" red? Since it is a "destructive" action. |
Closes #4401