-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate weekday condition from time condition #32848
Conversation
for this line I get this error:
If I add space then black is throwing the error, if I remove it then flake8 throws the error. |
Maybe with a breakline?
|
@javicalle not I get errors from black :/
Any other ideas on how to fix this? Maybe it is some kind of bug? I can't fulfill two conditions at once. |
Sorry, I have no clue. |
me neither :) |
@javicalle I had to remove the trailing comma as suggested here: psf/black#1288 |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
This isn't |
We won't review this until the architecture issue is approved. |
@MartinHjelmare I'm aware that there are big changes going on in HA and this is a tiny change. |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
Breaking change
While working on adding support for weekday condition in automation editor I got a suggestion from @bramkragten to split time and weekday condition into two separate conditions.
I've created this issue in architecture repo, this PR is its consequence.
Currently, both conditions will work, in 0.109 the weekday property of time will be removed.
Proposed change
Instead:
users will write:
Type of change
Example entry for
configuration.yaml
:# Example configuration.yaml
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale: