Commit Graph

4 Commits (0c35166a7bfb1e5e5ee9d25f38c2c217519c12a1)

Author SHA1 Message Date
Franck Nijhof 7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum (#74642) 2022-07-07 19:57:36 +03:00
Franck Nijhof 3a57f4363f
Revert "Patch out life360 entry setup in tests" (#74223)
Revert "Patch out life360 entry setup in tests (#74212)"

This reverts commit ab6e92f996.
2022-06-30 09:13:25 +02:00
Franck Nijhof ab6e92f996
Patch out life360 entry setup in tests (#74212) 2022-06-29 17:35:49 -07:00
Phil Bruckner 0a65f53356
Convert life360 integration to entity based (#72461)
* Convert life360 integration to entity based

* Improve config_flow.py type checking

* Add tests for config flow

Fix form defaults for reauth flow.

* Cover reauth when config entry loaded

* Update per review (except for dataclasses)

* Restore check for missing location information

This is in current code but was accidentally removed in this PR.

* Fix updates from review

* Update tests per review changes

* Change IntegData to a dataclass

* Use dataclasses to represent fetched Life360 data

* Always add extra attributes

* Update per review take 2

* Tweak handling of bad last_seen or location_accuracy

* Fix type of Life360Member.gps_accuracy

* Update per review take 3

* Update .coveragerc

* Parametrize successful reauth flow test

* Fix test coverage failure

* Update per review take 4

* Fix config schema
2022-06-29 18:40:02 +02:00