-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert hui-text-entity-row to TypeScript/LitElement #2017
Conversation
import { TemplateResult } from "lit-html"; | ||
|
||
import "../components/hui-generic-entity-row"; | ||
import "./hui-error-entity-row"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
<div>${computeStateDisplay( | ||
this.localize, | ||
stateObj, | ||
this.hass!.language |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't need a !
here because you already check for this.hass
existing on line 32 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok to merge when CI passes.
return html` | ||
${this.renderStyle()} | ||
<hui-generic-entity-row .hass="${this.hass}" .config="${this._config}"> | ||
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a bonus >
here which I removed in f4b64ee
No description provided.