Skip to content

Comments

Prevent duplicate month conditions in sensor#398

Merged
aneeshd merged 1 commit intoaneeshd:mainfrom
Pulpyyyy:main
Jan 31, 2026
Merged

Prevent duplicate month conditions in sensor#398
aneeshd merged 1 commit intoaneeshd:mainfrom
Pulpyyyy:main

Conversation

@Pulpyyyy
Copy link
Contributor

Ensure month condition is added only if not present.

- platform: schedule_state
  name: test jour mois
  default_state: "on"
  events:
    - state: "off"
      months: [11, 12, 1, 2, 3]
      condition:
        - condition: time
          weekday: [mon, tue, wed, thu, fri, sun]

Ensure month condition is added only if not present.
@aneeshd
Copy link
Owner

aneeshd commented Jan 27, 2026

How does the condition for months work? I don't see this in the Home Assistant documentation.

@aneeshd aneeshd merged commit 13041f7 into aneeshd:main Jan 31, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants