Commit graph

10 commits

Author SHA1 Message Date
epenet
d72c28a135
Use UnitOfLength in integrations (#84034) 2022-12-15 12:42:53 +01:00
Phil Bruckner
8874bf7791
Change life360 timeouts & retries (#81799)
Change from single timeout of 10 to socket timeout of 15, total timeout of 60, and retry up to 3 times.

Bump life360 package to 5.3.0.
2022-11-09 15:44:30 +01:00
Phil Bruckner
f311c03741
Increase life360 timeout (#80692) 2022-10-21 10:41:34 -04:00
epenet
1445e08090
Replace is_metric with is METRIC_SYSTEM (#80262) 2022-10-14 12:22:11 +02:00
epenet
24c26dc032
Use unit_conversion in components (#79204)
* Use unit_conversion in components

* Two more
2022-09-28 16:05:31 +02:00
Phil Bruckner
a38c125765
Improve Life360 address attribute (#76269) 2022-09-28 14:10:19 +02:00
Phil Bruckner
c6b3b9fa90
Convert life360 to aiohttp (#77508)
Bump life360 package to 5.1.0.
2022-08-31 14:54:23 -05:00
Phil Bruckner
343508a015
Fix Life360 recovery from server errors (#76231) 2022-08-04 21:28:59 +02:00
Phil Bruckner
f4953e6e9b
Do not spam log when Life360 member location is missing (#75029) 2022-07-12 08:42:33 +02: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