mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
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
This commit is contained in:
committed by
Fabian Affolter
parent
4b30cbbf3b
commit
25712f16b3
@@ -55,6 +55,7 @@ TEST_REQUIREMENTS = (
|
||||
'ha-ffmpeg',
|
||||
'haversine',
|
||||
'hbmqtt',
|
||||
'hdate',
|
||||
'holidays',
|
||||
'home-assistant-frontend',
|
||||
'homematicip',
|
||||
|
||||
Reference in New Issue
Block a user