Erik Montnemery and GitHub
bbce183faf
Deprecate dt_util.utc_to_timestamp ( #131787 )
2024-11-28 17:00:20 +01:00
epenet and GitHub
d6f4a79b46
Remove workaround for flaky translation tests ( #131628 )
2024-11-27 08:37:36 -06:00
epenet and GitHub
2bec20ad76
Ensure config entry is added to hass in reauth/reconfigure tests ( #129315 )
2024-10-28 11:03:42 +01:00
epenet and GitHub
7d3d693fe8
Align config flow reconfigure step test helper with frontend ( #127329 )
...
* Align config flow reconfigure step with frontend
* Update common.py
* Update common.py
* Adjust
* Adjust
* Fix test
* Adjust
2024-10-03 10:21:23 +02:00
epenet and GitHub
b95dfe2b00
Add test helper for starting reconfiguration flow ( #127154 )
2024-10-01 12:18:07 +02:00
epenet and GitHub
86a95013b6
Use start_reauth_flow helper in ezviz and netatmo tests ( #127100 )
...
* Use start_reauth_flow helper in netatmo tests
* Use start_reauth_flow helper in ezviz tests
2024-09-30 16:38:34 +02:00
epenet and GitHub
4bb768f39c
Add test for start_reauth_flow test helper ( #127093 )
...
* Improve docstring in start_reauth_flow
* Add test
* Make private
* Make fully private until actually needed
2024-09-30 14:28:13 +02:00
d82bff1bc2
Index config entry discovery_keys by discovery domain ( #126563 )
...
* Index config entry discovery_keys by discovery domain
* Add new signal
* Update tests
* Update homeassistant/config_entries.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* Fix imports
---------
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-09-23 21:48:11 +02:00
b2982c18bb
Reinitialize zeroconf discovery flow on unignore ( #125753 )
...
* Reinitialize zeroconf discovery flow on unignore
* Adjust tests
* Improve comments
* Fix logic for updating discovery keys
* Add tests
* Use mock_config_flow helper in new config_entries test
* Add discovery_keys attribute to ConfigEntry
* Update zeroconf rediscovery
* Change type of ConfigEntry.discovery_keys
* Update tests
* Fix DiscoveryKey.from_json_dict and add tests
* Fix test
---------
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-09-23 16:49:21 +02:00
epenet and GitHub
bd2b72235e
Use root import in tests ( #125862 )
...
* Use root import in components
* One more
2024-09-13 06:42:32 +02:00
epenet and GitHub
26006f8036
Use start_reauth helper method in broadlink and bthome ( #124783 )
...
* Use start_reauth helper method in broadlink reauth tests
* Also include bthome
2024-08-28 16:34:09 +02:00
epenet and GitHub
14eec2e57a
Add start_reauth helper method to MockConfigEntry ( #124767 )
...
* Add start_reauth helper method to MockConfigEntry
* Two more
2024-08-28 13:08:26 +02:00
Erik Montnemery and GitHub
511ec4ba8a
Remove test helper get_test_home_assistant ( #124177 )
2024-08-19 10:23:25 +02:00
Erik Montnemery and GitHub
ce2ffde22e
Update sensor recorder tests to async ( #124061 )
2024-08-18 13:20:58 -05:00
epenet and GitHub
ba3872ff87
Add missing hass type in tests/*.py ( #124048 )
2024-08-18 15:42:41 +02:00
6c01e4b99c
Use BaseEventLoop._thread_id instead of a custom attribute ( #124054 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-08-17 10:59:39 +02:00
Erik Montnemery and GitHub
7deb9bf30f
Do not override hass.loop_thread_id in tests ( #124053 )
2024-08-16 16:59:21 -05:00
Erik Montnemery and GitHub
115c5d1704
Fix threading in get_test_home_assistant test helper ( #124056 )
2024-08-16 16:59:33 +02:00
J. Nick Koston and GitHub
b15ea58851
Relocate code to get scheduled TimerHandles ( #123546 )
2024-08-12 09:15:33 +02:00
Erik Montnemery and GitHub
f4125eaf4c
Remove loop shutdown indicator when done with test hass ( #122432 )
2024-07-23 00:56:06 +02:00
Marc Mueller and GitHub
769d7214a3
Improve tests.common typing ( #122257 )
2024-07-20 17:34:43 +02:00
Marc Mueller and GitHub
ca55986057
Import Generator from collections.abc (1) ( #120914 )
2024-07-01 11:51:51 +02:00
Marc Mueller and GitHub
fcfb580f0c
Update pylint to 3.2.4 ( #120606 )
2024-06-26 22:29:55 +02:00
Erik Montnemery and GitHub
e32a27a8ff
Remove hass_recorder test fixture ( #120295 )
2024-06-24 11:14:08 +02:00
epenet and GitHub
904cf26d31
Add MockToggleEntity type hints in tests ( #120075 )
2024-06-21 12:32:03 +02:00
epenet and GitHub
7af79ba013
Add MockModule type hints in tests ( #120007 )
2024-06-21 11:11:48 +02:00
epenet and GitHub
dc6c1f4e87
Add MockPlatform type hints in tests ( #120012 )
...
* Add MockPlatform type hints in tests
* Remove useless code
* Improve
* Revert "Improve"
This reverts commit 9ad04f9255 .
2024-06-21 11:04:15 +02:00
epenet and GitHub
ec9f2f698c
Add type hints to MockGroup and MockUser in tests ( #119897 )
2024-06-18 13:11:10 -05:00
epenet and GitHub
38a6e666a7
Add missing return type to some test functions ( #119665 )
2024-06-14 08:26:45 +02:00
epenet and GitHub
8e1103050c
Fix dangerous-default-value warnings in core tests ( #119568 )
2024-06-13 17:10:37 +02:00
epenet and GitHub
ca8d3e0c83
Ignore unnecessary-lambda warnings in tests ( #119564 )
2024-06-13 16:58:41 +02:00
epenet and GitHub
e3e80c83b7
Fix contextmanager-generator-missing-cleanup warning in tests ( #119478 )
2024-06-12 22:38:11 +02:00
epenet and GitHub
c70cfbb535
Fix arguments-renamed pylint warning in tests ( #119473 )
2024-06-12 12:25:29 +02:00
epenet and GitHub
7388271689
Fix unspecified-encoding warnings in tests ( #119405 )
2024-06-11 17:58:40 +02:00
epenet and GitHub
7384140a60
Fix pointless-exception-statement warning in tests ( #119402 )
2024-06-11 17:20:23 +02:00
Erik Montnemery and GitHub
8620bef5b0
Support shared keys starting with period in services.yaml ( #118789 )
2024-06-11 16:31:19 +02:00
epenet and GitHub
ea571a6997
Fix unnecessary-dunder-call pylint warnings in tests ( #119379 )
2024-06-11 16:18:16 +02:00
epenet and GitHub
65befcf5d4
Fix import pylint warning in core tests ( #119359 )
2024-06-11 15:04:00 +02:00
Robert Svensson and GitHub
c9911e4dd4
Rework UniFi tests to not use runtime data ( #119202 )
2024-06-09 15:56:26 +02:00
Marc Mueller and GitHub
279483ddb0
Import Generator from typing_extensions (2) ( #118989 )
2024-06-06 17:24:22 +02:00
J. Nick Koston and GitHub
475c20d529
Always do thread safety check when writing state ( #118886 )
...
* Always do thread safety check when writing state
Refactor the 3 most common places where the thread safety check
for the event loop to be inline to make the check fast enough
that we can keep it long term. While code review catches most
of the thread safety issues in core, some of them still make
it through, and new ones keep getting added. Its not possible
to catch them all with manual code review, so its worth the
tiny overhead to check each time.
Previously the check was limited to custom components
because they were the most common source of thread
safety issues.
* Always do thread safety check when writing state
Refactor the 3 most common places where the thread safety check
for the event loop to be inline to make the check fast enough
that we can keep it long term. While code review catches most
of the thread safety issues in core, some of them still make
it through, and new ones keep getting added. Its not possible
to catch them all with manual code review, so its worth the
tiny overhead to check each time.
Previously the check was limited to custom components
because they were the most common source of thread
safety issues.
* async_fire is more common than expected with ccs
* fix mock
* fix hass mocking
2024-06-05 23:41:55 -04:00
Erik Montnemery and GitHub
35dcda29b9
Use ULID instead of UUID for config entry id and flow ID ( #118677 )
2024-06-03 10:34:09 +02:00
J. Nick Koston and GitHub
8f94205014
Include a traceback for non-strict event loop blocking detection ( #118620 )
2024-06-02 06:36:25 -04:00
J. Nick Koston and GitHub
25f199c39c
Improve performance of verify_event_loop_thread ( #118198 )
2024-05-26 17:39:15 -10:00
epenet and GitHub
bb0b01e4a9
Add error message to snapshot_platform helper ( #117974 )
2024-05-24 10:38:23 +02:00
J. Nick Koston and GitHub
5a609c34bb
Fix blocking I/O in the event loop when loading timezones ( #117721 )
2024-05-20 11:06:03 +02:00
Marc Mueller and GitHub
8f0fb4db3e
Use PEP 695 for class annotations (4) ( #117778 )
2024-05-20 10:44:52 +02:00
Robert Svensson and GitHub
fa815234be
Make UniFi use runtime data ( #117457 )
2024-05-14 21:04:26 +02:00
J. Nick Koston and GitHub
9381462877
Migrate restore_state to use the singleton helper ( #117385 )
2024-05-14 09:13:44 +09:00
Erik Montnemery and GitHub
d1525b1edf
Sort parameters to MockConfigEntry ( #117239 )
2024-05-11 14:16:29 -04:00