Skip to content

Convert Sensor Card to Typescript#2140

Merged
zsarnett merged 18 commits intodevfrom
sensor-ts
Dec 1, 2018
Merged

Convert Sensor Card to Typescript#2140
zsarnett merged 18 commits intodevfrom
sensor-ts

Conversation

@zsarnett
Copy link
Copy Markdown
Contributor

This is a beast of a Card. Im sure I messed something up...

@ghost ghost assigned zsarnett Nov 28, 2018
@ghost ghost added the in progress label Nov 28, 2018
@zsarnett zsarnett added the Breaking Change Needs Special Documentation to let users know about Change label Nov 29, 2018
@zsarnett
Copy link
Copy Markdown
Contributor Author

I have a commit waiting to reset the date after pulling the history... I forgot to push.

balloob
balloob previously approved these changes Nov 30, 2018
@zsarnett zsarnett dismissed balloob’s stale review November 30, 2018 18:30

I would like this to be reviewed again as many things have changed.

@zsarnett zsarnett requested a review from bramkragten November 30, 2018 20:22
@zsarnett
Copy link
Copy Markdown
Contributor Author

NOt sure how to use the function Balloob was describing in Discord from the history element. Something to with Cache I believe.

Copy link
Copy Markdown
Member

@bramkragten bramkragten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding caching can be done in a new pr, it didn't have it before right?

viewBox="0 0 500 100"
></svg>
`
this._config.graph === "line"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Break it up before the return so readabilty improves.

let content;
if (this._config.graph === "line") {
  content = html`...`;
} else {
  content = html`...`;
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. Will update and merge thanks @bramkragten

@zsarnett zsarnett merged commit 8ae03dd into dev Dec 1, 2018
@ghost ghost removed the in progress label Dec 1, 2018
@delete-merged-branch delete-merged-branch bot deleted the sensor-ts branch December 1, 2018 03:50
@balloob balloob mentioned this pull request Dec 5, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Breaking Change Needs Special Documentation to let users know about Change cla-signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants