Skip to content

Add support for displaying Daf Yomi#30628

Merged
springstan merged 15 commits intohome-assistant:devfrom
moshekaplan:dev
Feb 15, 2020
Merged

Add support for displaying Daf Yomi#30628
springstan merged 15 commits intohome-assistant:devfrom
moshekaplan:dev

Conversation

@moshekaplan
Copy link
Copy Markdown
Contributor

@moshekaplan moshekaplan commented Jan 9, 2020

Description:

Add support for displaying the day's Daf Yomi to the jewish_calendar component.

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@homeassistant
Copy link
Copy Markdown
Contributor

Hi @moshekaplan,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@probot-home-assistant
Copy link
Copy Markdown

Hey there @tsvi, mind taking a look at this pull request as its been labeled with a integration (jewish_calendar) you are listed as a codeowner for? Thanks!

Comment thread homeassistant/components/jewish_calendar/sensor.py Outdated
Comment thread homeassistant/components/jewish_calendar/sensor.py Outdated
@fabaff fabaff changed the title jewish_calendar component: Add support for displaying Daf Yomi Add support for displaying Daf Yomi Jan 9, 2020
@tsvi
Copy link
Copy Markdown
Contributor

tsvi commented Jan 9, 2020

Hi @moshekaplan,

Thank you very much for your contribution.
Unfortunately, you will need to split up the code between the hdate package which is used by the Jewish calendar and the code in home assistant.

The homeassistant maintainers try to keep the non- homeassistant code to a minimum.

Please open a PR on royi1000/py-libhdate with the code for calculating the daf. (Yes, I know the code there is a bit a mess, help is more than welcome).

Once we've got that code working, I'll upload a new version to pypi which you can then use here.

It's a bit cumbersome, but it helps keeping the code in homeassistant clean.

Thank you,

Tsvi

Comment thread homeassistant/components/jewish_calendar/sensor.py Outdated
@moshekaplan
Copy link
Copy Markdown
Contributor Author

moshekaplan commented Jan 10, 2020

Submitted py-libhdate/py-libhdate#46 . Once the daf yomi code is merged in there, this code can be modified to use the updated library.

@tsvi
Copy link
Copy Markdown
Contributor

tsvi commented Jan 22, 2020

Hi @moshekaplan

I just published version 0.9.4 of hdate. You can now continue with this PR. Don't forget after updating the manifest to run gen_requirements_all.

Thanks,

Tsvi

@tsvi
Copy link
Copy Markdown
Contributor

tsvi commented Jan 22, 2020

I was a bit to trigger happy. Please take 0.9.5 which passes tox.

Comment thread homeassistant/components/jewish_calendar/sensor.py Outdated
@moshekaplan
Copy link
Copy Markdown
Contributor Author

@tsvi : Could you review this again?

Comment thread homeassistant/components/jewish_calendar/sensor.py Outdated
@tsvi
Copy link
Copy Markdown
Contributor

tsvi commented Jan 24, 2020

You also should update the tests and add a check for the daf yomi sensor in there as well.

@moshekaplan
Copy link
Copy Markdown
Contributor Author

@tsvi : We might be good to go. Can you review again?

@tsvi
Copy link
Copy Markdown
Contributor

tsvi commented Jan 31, 2020

Looks ok to me

@moshekaplan
Copy link
Copy Markdown
Contributor Author

@fabaff : Could you please review this again?

Copy link
Copy Markdown
Member

@springstan springstan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✌

@springstan springstan merged commit 7dff5e7 into home-assistant:dev Feb 15, 2020
@lock lock Bot locked and limited conversation to collaborators Feb 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants