* Add test for init * update tests * split common.py into const.py and __init__.py * Update tests/components/fyta/__init__.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * add autospec, tidy up * adjust len-test --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* save access_token and expiration date in ConfigEntry * add MINOR_VERSION and async_migrate_entry * shorten reading of expiration from config entry * add additional consts and test for config entry migration * Update homeassistant/components/fyta/coordinator.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Update homeassistant/components/fyta/__init__.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * omit check for datetime data type * Update homeassistant/components/fyta/__init__.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Update homeassistant/components/fyta/coordinator.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>