From 3c5e2bc3388f8e6f2b21f4b123393ea0213c26bf Mon Sep 17 00:00:00 2001 From: Ola Thoresen Date: Sat, 21 Sep 2024 21:57:58 +0200 Subject: [PATCH] More typecheck --- package.json | 2 +- src/flower-card.ts | 2 +- src/utils/utils.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0b3c903..b43b68c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "flower-card", - "version": "2024.9.0-beta1", + "version": "2024.9.0-beta2", "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 13cd316..c87faea 100644 --- a/src/flower-card.ts +++ b/src/flower-card.ts @@ -54,7 +54,7 @@ export default class FlowerCard extends LitElement { } static getStubConfig(ha: HomeAssistant) { - let supportedEntities: Array = []; + let supportedEntities: Array = []; try { 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 12e84c0..4190a6d 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: Array = []; + let supportedEntities: Array = []; try { supportedEntities = Object.values(hass.states).filter( (entity) => entity.entity_id.indexOf('plant.') === 0