Skip to content

Commit

Permalink
Merge pull request #142 from Olen/2024.9.0
Browse files Browse the repository at this point in the history
Typecheck
  • Loading branch information
Olen authored Sep 21, 2024
2 parents a925d86 + c09de81 commit a8a656f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flower-card",
"version": "2024.9.0-beta2",
"version": "2024.9.0-beta1",
"description": "Custom flower card for https://github.com/Olen/homeassistant-plant",
"keywords": [
"home-assistant",
Expand Down
4 changes: 2 additions & 2 deletions src/flower-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ export default class FlowerCard extends LitElement {
}

static getStubConfig(ha: HomeAssistant) {
let supportedEntities = [];
let supportedEntities: Array<string> = [];
try {
const supportedEntities = Object.values(ha.states).filter(
supportedEntities = Object.values(ha.states).filter(
(entity) => entity.entity_id.indexOf('plant.') === 0
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const getConfigElement = (): HTMLElement => {
}

export const getStubConfig = (hass: HomeAssistant) => {
let supportedEntities = [];
let supportedEntities: Array<string> = [];
try {
supportedEntities = Object.values(hass.states).filter(
(entity) => entity.entity_id.indexOf('plant.') === 0
Expand Down

0 comments on commit a8a656f

Please # to comment.