Skip to content

Commit

Permalink
Merge pull request #2 from myztillx/feature/better-entity-picking
Browse files Browse the repository at this point in the history
  • Loading branch information
myztillx authored Jun 7, 2022
2 parents 3a06dce + 3202a06 commit 59f9c68
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aftership-card",
"version": "0.1.0",
"version": "0.1.1",
"description": "Lovelace aftership-card",
"keywords": [
"home-assistant",
Expand Down
2 changes: 1 addition & 1 deletion src/const.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const CARD_VERSION = '0.1.0'
export const CARD_VERSION = '0.1.1'
3 changes: 2 additions & 1 deletion src/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export class AftershipCardEditor

// You can restrict on domain type
const entities = Object.keys(this.hass.states)
const entitiesFiltered = entities.filter((v) => v.match('aftership'))

return html`
<mwc-select
Expand All @@ -78,7 +79,7 @@ export class AftershipCardEditor
@selected=${this._valueChanged}
@closed=${(ev) => ev.stopPropagation()}
>
${entities.map((entity) => {
${entitiesFiltered.map((entity) => {
return html`<mwc-list-item .value=${entity}>${entity}</mwc-list-item>`
})}
</mwc-select>
Expand Down

0 comments on commit 59f9c68

Please sign in to comment.