Commit Graph

25 Commits

Author SHA1 Message Date
Michael
55ffc82be1 Store runtime data inside the config entry in Speedtest.net (#116802) 2024-05-04 22:32:53 +02:00
epenet
9204ccfa17 Use is in ConfigEntryState enum comparison in tests (N-Z) (#114926) 2024-04-05 17:37:00 +02:00
Joost Lekkerkerker
ee66f6ec8c Use is in enum comparison in config flow tests P-T (#114675) 2024-04-02 11:21:50 -10:00
J. Nick Koston
9a79320861 Mark executor jobs as background unless created from a tracked task (#114450)
* Mark executor jobs as background unless created from a tracked task

If the current task is not tracked the executor job should not
be a background task to avoid delaying startup and shutdown.

Currently any executor job created in a untracked task or
background task would end up being tracked and delaying
startup/shutdown

* import exec has the same issue

* Avoid tracking import executor jobs

There is no reason to track these jobs as they are always awaited
and we do not want to support fire and forget import executor jobs

* fix xiaomi_miio

* lots of fire time changed without background await

* revert changes moved to other PR

* more

* more

* more

* m

* m

* p

* fix fire and forget tests

* scrape

* sonos

* system

* more

* capture callback before block

* coverage

* more

* more races

* more races

* more

* missed some

* more fixes

* missed some more

* fix

* remove unneeded

* one more race

* two
2024-03-30 00:16:53 -04:00
Marc Mueller
7d6251ca08 Add empty line after module docstring [tests q-s] (#112711) 2024-03-08 14:47:22 +01:00
Joost Lekkerkerker
29d8be510e Test speedtest.net config entry lifecycle (#100280) 2023-09-13 12:40:26 +02:00
Joost Lekkerkerker
458a3f0df2 Remove restore functionality in Speedtest.net (#96950) 2023-09-12 21:12:01 +02:00
Joost Lekkerkerker
8bbb395bec Add entity translations to Speedtest.net (#96168)
* Add entity translations to Speedtest.net

* Fix tests
2023-07-09 20:20:39 +02:00
Rami Mosleh
78cc547782 Remove scan_interval and manual options from speedtestdotnet (#84295) 2022-12-20 16:01:28 +01:00
Rami Mosleh
10a6c56fec Move speedtestdotnet coordinator to separate file (#83979) 2022-12-18 10:57:17 +01:00
Rami Mosleh
d3ada34498 Remove deprecate service in speedtestdotnet (#80938)
Remove deprecate service
2022-10-25 10:44:27 -07:00
epenet
e9f55f4e54 Apply hass-relative-import to tests (s-z) (#78733) 2022-09-19 09:51:31 +02:00
Rami Mosleh
b36321988f Deprecate speedtest service (#77261)
deprecate speedtest service
2022-08-26 11:57:43 -07:00
Franck Nijhof
7cd68381f1 Search/replace RESULT_TYPE_* by FlowResultType enum (#74642) 2022-07-07 19:57:36 +03:00
Rami Mosleh
51addfc164 Add device_info to Speedtestdotnet and some code cleanup (#56612)
* Apply code cleanup suggestions from previous PRs

* Update homeassistant/components/speedtestdotnet/const.py

Co-authored-by: Franck Nijhof <git@frenck.dev>

* fix native_value, and ping value in test

* use self._state instead of _attr_native_value

* update identifiers and add more tests

Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-09-30 08:28:04 +02:00
Rami Mosleh
4c40d1767a Remove config for Speedtest.net (#55642) 2021-09-23 20:44:59 +02:00
Michael
bffa9f960d Add state class measurement to all suitable sensors on Speedtest.net (#53693)
* Add state class measurement

* use tuple instead of list
2021-08-02 17:00:25 +02:00
Rami Mosleh
1a450c2084 Speedtestdotnet code cleanup and type hints (#52533) 2021-07-22 12:25:54 +02:00
Ville Skyttä
19d25cd901 Change config entry state to an enum (#49654)
* Change config entry state to an enum

* Allow but deprecate EntryState str equality comparison

* Test fixes

* Rename to ConfigEntryState

* Remove str comparability backcompat

* Update new occurrences of strs cropped up during review
2021-05-20 19:19:20 +02:00
Ville Skyttä
153d6e891e Use config_entries.SOURCE_* constants (#49631) 2021-04-25 11:27:40 +02:00
Franck Nijhof
65cf2fcb6f Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
springstan
c7ebfdb403 Use single_instance_allowed for webhook config flows (#40965) 2020-10-01 20:44:13 +02:00
r4nd0mbr1ck
11319ac479 Speedtestdotnet - use server name to generate server list (#39775) 2020-09-14 22:50:44 -07:00
Franck Nijhof
1c2ebdf307 Upgrade black to 20.8b1 (#39287) 2020-08-27 13:56:20 +02:00
Rami Mosleh
2c1a76cf92 Add Speedtestdotnet config_flow (#36254) 2020-06-10 18:33:48 +02:00