diff --git a/package.json b/package.json index b43b68c..0b3c903 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/flower-card.ts b/src/flower-card.ts index f1ac603..13cd316 100644 --- a/src/flower-card.ts +++ b/src/flower-card.ts @@ -54,9 +54,9 @@ export default class FlowerCard extends LitElement { } static getStubConfig(ha: HomeAssistant) { - let supportedEntities = []; + let supportedEntities: Array = []; try { - const supportedEntities = Object.values(ha.states).filter( + supportedEntities = Object.values(ha.states).filter( (entity) => entity.entity_id.indexOf('plant.') === 0 ); } diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 02a2c07..12e84c0 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -7,7 +7,7 @@ export const getConfigElement = (): HTMLElement => { } export const getStubConfig = (hass: HomeAssistant) => { - let supportedEntities = []; + let supportedEntities: Array = []; try { supportedEntities = Object.values(hass.states).filter( (entity) => entity.entity_id.indexOf('plant.') === 0