-
- Downloads
Jewish calendar sensor (#16393)
* Initial commit for jewish calendar sensor * Make check for logging errors into it's own function * Can't use f-strings as we need to support python3.5 * Implement basic functionality: printing of date * Update requirements_all.txt * Allow user to specify date for sensor * Add hdate to test requirements * Update to match pull request * Support date output in hebrew * Limit languages to english and hebrew * Add name back to sensor * Change icon to be calendar-today * Add multiple sensors * Fix tests * Make Hound happy, remove unused imported class * hdate expects datetime.date not datetime.datetime * Return sensor name * Times should be returned as time object, not datetime * Add myself to codeowners for jewish calendar component * Return actual reading, not index * Add more tests. Currently failing. Will need to update hdate API and version before continuing. * Fix weekly portion test * Make all tests pass * Make travis happy and add a test so it doesnt happen again * Remove defaults in __init__ method * Change sensor state variable to local variable in update() method * Minor changes
Showing
- CODEOWNERS 1 addition, 0 deletionsCODEOWNERS
- homeassistant/components/sensor/jewish_calendar.py 134 additions, 0 deletionshomeassistant/components/sensor/jewish_calendar.py
- requirements_all.txt 3 additions, 0 deletionsrequirements_all.txt
- requirements_test_all.txt 3 additions, 0 deletionsrequirements_test_all.txt
- script/gen_requirements_all.py 1 addition, 0 deletionsscript/gen_requirements_all.py
- tests/components/sensor/test_jewish_calendar.py 134 additions, 0 deletionstests/components/sensor/test_jewish_calendar.py
Please register or sign in to comment