Skip to content

Commit

Permalink
FR #17. Change show_controllers to use controller_id rather than posi…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
rgc99 committed Sep 15, 2024
1 parent 8d4e735 commit 338622b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ This section is for people wanting to use [YAML](https://yaml.org) to edit the c
| ----------------------- | ------- | ------------ | ------------------------------------------ | ---------------------- |
| type | string | **Required** | `custom:irrigation-unlimited-card` | |
| name | string | **Optional** | Card name | `Irrigation Unlimited` |
| controllers | string | **Optional** | CSV list of controllers to display | |
| show_controllers | string | **Optional** | CSV list of controllers to display | |
| always_show_zones | boolean | **Optional** | Force the zones to always be displayed | false |
| always_show_sequences | boolean | **Optional** | Force the sequences to always be displayed | false |
| show_timeline_scheduled | boolean | **Optional** | Show scheduled items in the timeline | true |
Expand Down
2 changes: 1 addition & 1 deletion src/irrigation-unlimited-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class IrrigationUnlimitedCard extends LitElement {
this.config.show_controllers
?.replace(/\s/g, "")
.split(",")
.includes(controller.id1 + ""))
.includes(controller.controller_id))
);
const zonesHidden = !this.config.always_show_zones;
const sequencesHidden = !this.config.always_show_sequences;
Expand Down

0 comments on commit 338622b

Please sign in to comment.