Commit Graph
2 Commits
Author SHA1 Message Date
6682244abf Improve fyta tests (#117661)
* 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 <[email protected]>

* add autospec, tidy up

* adjust len-test

---------

Co-authored-by: Joost Lekkerkerker <[email protected]>
2024-05-23 10:51:30 +02:00
180e178a69 Store access token in entry for Fyta (#116260)
* 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 <[email protected]>

* Update homeassistant/components/fyta/__init__.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* omit check for datetime data type

* Update homeassistant/components/fyta/__init__.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update homeassistant/components/fyta/coordinator.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

---------

Co-authored-by: Joost Lekkerkerker <[email protected]>
2024-04-29 17:09:07 +02:00