Refactor sun component for correctness (#7295)

* Refactor sun component for correctness

* Convert datetimes to dates for astral

* Fix tests for updated code

* Fix times now that calcs are fixed

* Move sun functions to helpers

* Fix flake on new file

* Additional tweaks from review

* Update requirements
This commit is contained in:
Adam Mills 2017-05-09 03:03:34 -04:00 committed by Paulus Schoutsen
parent 419d97fc06
commit 40d27cde0e
19 changed files with 754 additions and 756 deletions

View file

@ -24,7 +24,8 @@ REQUIRES = [
'typing>=3,<4',
'aiohttp==2.0.7',
'async_timeout==1.2.1',
'chardet==3.0.2'
'chardet==3.0.2',
'astral==1.4',
]
setup(