Jewish calendar binary sensor#26200
Merged
Merged
Conversation
8d5352b to
085866e
Compare
tsvi
added a commit
to tsvi/home-assistant.github.io
that referenced
this pull request
Aug 26, 2019
Updates for PR home-assistant/core#26200
2 tasks
MartinHjelmare
requested changes
Aug 28, 2019
6d0af80 to
b105c7d
Compare
Contributor
Author
|
Finally got all the tests to pass. @MartinHjelmare any more fixes necessary? |
As part of this, move tests to use async_setup_component instead of testing JewishCalendarSensor as suggested by @MartinHjelmare here: home-assistant#24958 (review)
…_time_zone in tests
Don't use unnecessary alter time in binary sensor Remove unused alter_time
This reverts commit 74371740eaeb6e73c1a374725b05207071648ee1.
6886e4e to
879e2f6
Compare
Contributor
Author
|
Fixed the imports as requested |
MartinHjelmare
approved these changes
Sep 3, 2019
Contributor
Author
|
I think we need a breaking change label here. |
Member
|
Please add to the breaking change paragraph what the user needs to do to cope with the breaking change. |
Contributor
Author
|
@MartinHjelmare can you merge the PR? Or are we waiting for another review? |
Member
|
We're all good! Changing the PR description doesn't generate a github notification. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breaking Change:
Change in
configuration.yamlTo
Automations based on
sensor.issur_melacha_in_effectcomparison toTrue/Falseneed to be updated to usebinary_sensor.issur_melacha_in_effecton and off states.Explanation
The
issur_melacha_in_effectwas supposed to be a binary sensor. I wasn't aware of the distinction back when I first developed this integration. This fixes this issue by creating a new platform, supporting both types of sensors.Description:
Make Jewish calendar its own platform with two types of sensors: sensor and binary sensor. In a future PR I plan to split the sensor furthermore in data and time related so that I can provide datetime attributes in the same fashion as the date sensor. This will provide easier ways of writing automations.
Related issue (if applicable): fixes #20315
As part of this change, I implemented @MartinHjelmare suggestion for testing the components,
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#10231
Example entry for
configuration.yaml(if applicable):Checklist:
tox. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
python3 -m script.hassfest.requirements_all.txtby runningpython3 -m script.gen_requirements_all.If the code does not interact with devices: