Skip to content

Commit

Permalink
Merge pull request #136 from Olen/2024.9.0
Browse files Browse the repository at this point in the history
Second fix
  • Loading branch information
Olen authored Sep 21, 2024
2 parents fd94862 + 15c5f5a commit 3c47c18
Show file tree
Hide file tree
Showing 2 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
4 changes: 2 additions & 2 deletions src/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export class FlowerCardEditor extends EditorForm {
this._config.show_bars = default_show_bars;
}

const plantsList = getEntitiesByDomain('plant');
const batteryList = getEntitiesByDeviceClass("sensor", "battery");
const plantsList = getEntitiesByDomain(this._hass, 'plant');
const batteryList = getEntitiesByDeviceClass(this._hass, "sensor", "battery");

return this.renderForm([
{ controls: [{ label: "Display Type", configValue: "display_type", type: FormControlType.Radio, items: [
Expand Down

0 comments on commit 3c47c18

Please sign in to comment.