Commit graph

274 commits

Author SHA1 Message Date
Martin Hjelmare
53b73bd0bd
Make device tracker latitude and longitude optional ()
* Make device tracker latitude and longitude optional

* Update test
2024-01-25 13:25:17 +01:00
Martin Hjelmare
852e4c21c6
Complete device tracker entity tests () 2024-01-24 19:50:55 +01:00
Erik Montnemery
c805ea7b4f
Include deprecated constants in wildcard imports () 2024-01-05 11:46:45 +01:00
Robert Resch
9dd1b9e268
Deprecate deprecated device tracker constants () 2023-12-20 18:06:38 +01:00
Jan-Philipp Benecke
dc17780e5b
Remove device from known_devices upon import in ping device tracker ()
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-12-05 18:52:22 +01:00
Erik Montnemery
84e74e4c74
Reverse component path ()
* Reverse component path

* Update translations helper

* Fix

* Revert incorrect change of PLATFORM_FORMAT

* Fix use of PLATFORM_FORMAT in tts

* Fix ios
2023-12-05 08:43:58 +01:00
Jan-Philipp Benecke
81450f0117
Update d-e* tests to use entity & device registry fixtures () 2023-11-12 10:38:32 +01:00
Erik Montnemery
9cf9b36637
Use real devices in device_tracker device condition tests () 2023-10-24 23:31:49 +02:00
Erik Montnemery
6d1d3f4207
Use real devices in device_tracker device trigger tests () 2023-10-24 21:58:22 +02:00
Erik Montnemery
ec143b26d7
Adjust device_tracker tests which create devices () 2023-08-10 18:22:33 +02:00
Erik Montnemery
16ec9b1e9f
Use entity registry id in device_tracker device conditions () 2023-06-26 20:29:39 +02:00
Erik Montnemery
20be441c9f
Teach device_tracker device trigger about entity registry ids () 2023-06-21 14:51:00 +02:00
Erik Montnemery
6a29ed8caa
Replace assert_lists_same with pytest_unordered in integrations a-f () 2023-06-20 20:22:31 +02:00
Jan Bouwhuis
ec98e22330
Add type hints for stub_blueprint_populate fixture ()
Add typehints for stub_blueprint_populate fixture
2023-05-26 08:13:13 +02:00
Erik Montnemery
3cca338c6e
Improve blueprint test fixtures () 2023-05-25 13:45:19 +02:00
Erik Montnemery
0126cfa9d9
Allow exposing any entity to the default conversation agent ()
* Allow exposing any entity to the default conversation agent

* Tweak

* Fix race, update tests

* Update tests
2023-05-03 09:45:54 -04:00
J. Nick Koston
5f0d983df1
Make the device_tracker more forgiving when passed an empty ip address string ()
This has come up over and over and over again

fixes  fixes 
2023-04-08 22:32:56 -04:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ()
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
728f62b1ec
Add type hints to integration tests (part 5) () 2023-02-12 19:39:48 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ()
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
Franck Nijhof
330e1c6cbb
Clean up unnecessary registry mocks from integration tests () 2023-02-09 10:43:45 +01:00
Franck Nijhof
51a9f65a01
Clean up unnecessary registry mocks from Core tests () 2023-02-08 13:28:44 -06:00
epenet
3052de3e8e
Add type hints to integration tests (d-e) () 2023-02-08 13:01:44 +01:00
epenet
4142f0d15d
Add return type to tests without arguments ()
* Add return type to tests without arguments

* Black

* Cancel fixture amends
2023-02-07 14:20:06 +01:00
Franck Nijhof
24fdd588fd
Code styling tweaks to the tests - Part 1 () 2023-01-20 13:52:46 +01:00
epenet
4f31f28e67
Cleanup SourceType in tests () 2022-09-20 10:50:07 -04:00
epenet
14e5001d0c
Cleanup known_devices.yaml in device_tracker tests () 2022-07-04 14:10:25 +02:00
Shay Levy
d56a487169
Fix CI failure due to integrations leaving dirty known_devices.yaml () 2022-07-02 11:20:40 -07:00
Erik Montnemery
5e50a8abd5
Mark device triggers from hidden or auxiliary entities as secondary ()
* Mark device triggers from hidden or auxiliary entities as secondary

* Update tests
2022-04-21 08:01:32 +02:00
Erik Montnemery
150f173eed
Mark device conditions from hidden or auxiliary entities as secondary () 2022-04-20 21:41:59 +02:00
Michael
70a771b6ed
Respect disable_new_entities for new device_tracker entities () 2022-03-21 20:40:33 -07:00
J. Nick Koston
a18d4c51ff
Ensure dhcp can still discover new devices from device trackers ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-19 09:01:34 -06:00
Erik Montnemery
dccc4eba76
Remove artifacts from black formatting ()
* Remove artifacts from black formatting

* Tweak
2022-01-28 17:00:01 +02:00
Paulus Schoutsen
2b4bb49eb7
Make device tracker entities work better ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-04 23:16:43 -08:00
Ville Skyttä
5926961ed5
Use DeviceAutomationType in tests/components/[a-f]* () 2021-12-20 22:26:29 +01:00
Paulus Schoutsen
ba00c786b0
Correctly detect is not home () 2021-07-21 19:45:07 +02:00
Joakim Sørensen
2f10f59717
Block custom integrations with missing or invalid version () 2021-05-17 15:48:41 +02:00
jan iversen
6a4f414236
Change HomeAssistantType to HomeAssistant () 2021-04-21 15:53:06 -10:00
Joakim Sørensen
9585defca0
Add device_tracker scanners to hass.config.components () 2021-04-11 13:54:43 -10:00
Franck Nijhof
ad13a9295e
Merge multiple context managers in tests () 2021-03-27 09:17:15 +01:00
Franck Nijhof
5a2b5fe7c5
Yoda assertion style removed is () 2021-03-20 13:55:10 +01:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ()
* Unused pylint suppression cleanups

* Remove outdated pylint bug references

* Add flake8-noqa config and note to run it every now and then

* Add codes to noqa's

* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Martin Hjelmare
a9a0f8938f
Move device tracker scanner attributes to ScannerEntity () 2021-01-19 11:04:08 -06:00
J. Nick Koston
5e01b828af
Discover devices from device_trackers with router sources ()
* Discover devices from device_trackers with router sources

* Update homeassistant/components/dhcp/__init__.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* fix stop being called on the wrong context

* clean

* move it to base

* cleanup was too agressive

* Update homeassistant/components/dhcp/__init__.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* coverage

* revert legacy changes

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-01-16 01:01:37 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Paulus Schoutsen
b3be708db6
Add default config if not there ()
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-25 15:10:04 +01:00
Matthew Donoughe
bc4bbaf6ef
Add device trigger support for device trackers ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-11-09 12:04:16 +01:00
J. Nick Koston
89a9634d35
Use eventloop for scheduling ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-06-29 09:39:24 -07:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 () 2020-04-30 13:29:50 -07:00
Paulus Schoutsen
0d700f6a63
Fix tests for Python 3.8 () 2020-04-25 14:32:55 -07:00