Skip to content

Commit

Permalink
Merge pull request #143 from Olen/2024.9.0
Browse files Browse the repository at this point in the history
More typecheck
  • Loading branch information
Olen authored Sep 21, 2024
2 parents a8a656f + 3c5e2bc commit 6d95a10
Show file tree
Hide file tree
Showing 3 changed files with 3 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": "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",
Expand Down
2 changes: 1 addition & 1 deletion src/flower-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class FlowerCard extends LitElement {
}

static getStubConfig(ha: HomeAssistant) {
let supportedEntities: Array<string> = [];
let supportedEntities: Array<any> = [];
try {
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: Array<string> = [];
let supportedEntities: Array<any> = [];

Check failure on line 10 in src/utils/utils.ts

View workflow job for this annotation

GitHub Actions / Build Release

Unexpected any. Specify a different type
try {
supportedEntities = Object.values(hass.states).filter(
(entity) => entity.entity_id.indexOf('plant.') === 0
Expand Down

0 comments on commit 6d95a10

Please sign in to comment.