epenet
26d56b8218
Use DOMAIN constant in test (async_setup_component o-z) ( #173018 )
2026-06-06 12:14:46 -07:00
epenet
6450e2790c
Use DOMAIN constant in MockConfigEntry (a-o) ( #172989 )
2026-06-04 10:18:51 +02:00
Ariel Ebersberger
5432d29489
Use is/is not for same-enum identity comparisons (tests) ( #171689 )
2026-05-22 11:32:27 +02:00
Franck Nijhof
83fbea2158
Fix line length violations in tests/components n-o ( #170967 )
2026-05-17 10:32:44 -04:00
Stefan Agner
0224928655
Bump python-otbr-api to 2.10.0 ( #169370 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev >
2026-04-29 09:10:26 +02:00
epenet
7dacd0080b
Fix otbr flaky config flow tests in Python 3.14.3 ( #169348 )
...
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-28 11:22:15 +02:00
epenet
a308b84f15
Use hardware/usb domain constant in tests ( #162934 )
2026-02-16 16:39:28 +01:00
TheJulianJES
1f19e40cfe
Adjust OTBR config entry name for ZBT-2 ( #153940 )
2025-10-10 14:19:08 +02:00
Joost Lekkerkerker
9b862a8e4e
Set otbr config entry title to ZBT-1 with a SkyConnect ( #151911 )
2025-09-09 15:03:17 +02:00
puddly
81cac25bd0
OTBR firmware API for Home Assistant Hardware ( #138330 )
...
* Implement `async_register_firmware_info_provider` for OTBR
* Keep track of the current device for OTBR
Keep track of the current device, part 2
* Fix unit tests
* Revert keeping track of the current device
* Fix existing unit tests
* Increase test coverage
* Remove unused code from tests
* Reload OTBR when the addon reloads
* Only reload if the current entry is running
* Runtime test
* Add a unit test for the reloading
* Clarify the purpose of `ConfigEntryState.SETUP_IN_PROGRESS`
* Simplify typing
2025-02-12 15:48:09 -05:00
epenet
02956f9a83
Improve formatting in component test files ( #135267 )
...
Improve formatting in test files
2025-01-10 10:53:45 +01:00
Robert Resch
380974eed4
Remove hassio from ALLOWED_USED_COMPONENTS and move some functions to helper ( #127228 )
...
* Remove hassio from ALLOWED_USED_COMPONENTS
* Move HassioServiceInfo to helpers.service_info
* Deprecate moved functions
* Add note about deprecation
* Fix tests
* Implement suggestion
* Typo
* Update pyproject.toml
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
2024-10-30 12:43:41 +01:00
Mike Degatano
ad55c9cc19
Remaining addon management to aiohasupervisor ( #128484 )
...
* Move set addon options to aiohasupervisor
* addon stats to aiohasupervisor and test fixes
* addon changelogs to aiohasupervisor
* Raise correct error for library in tests
* Cache client in instance property
* Use singleton method rather then HassIO instance method
* Mock supervisor client in more tests
2024-10-21 16:41:00 +02:00
Mike Degatano
97d0d91d2c
Use aiohasupervisor for addon info calls ( #125926 )
...
* Use aiohasupervisor for addon info calls
* Fix issue/repair tests in supervisor
* Fixes from feedback
2024-09-17 23:22:35 +02:00
Erik Montnemery
e2d84f9a58
Add support for multiple otbr config entries ( #124289 )
...
* Add support for multiple otbr config entries
* Fix test
* Drop useless fixture
* Address review comments
* Change unique id from xa to id
* Improve error text
* Store data in ConfigEntry.runtime_data
* Remove useless function
2024-08-27 19:07:35 +02:00
Erik Montnemery
a1e3e7f24f
Deduplicate OTBR test fixtures ( #124293 )
2024-08-20 14:58:34 +02:00
Erik Montnemery
15976b8207
Disable expensive pskc computation in all otbr tests ( #124292 )
...
* Disable expensive pskc computation in all otbr tests
* Update tests and fixtures which patched compute_pskc
2024-08-20 14:53:06 +02:00
Erik Montnemery
b4648136c5
Deduplicate otbr tests ( #124270 )
2024-08-20 10:33:16 +02:00
Erik Montnemery
b31c6012ae
Use HassKey in otbr ( #124240 )
2024-08-20 08:16:59 +02:00
Erik Montnemery
50f3c891fa
Prepare otbr.silabs_multiprotocol for multiple config entries ( #124219 )
...
* Prepare otbr.silabs_multiprotocol for multiple config entries
* Simplify
2024-08-19 17:30:48 +02:00
Erik Montnemery
f2d41bd99c
Minor improvements of otbr tests ( #124224 )
2024-08-19 16:29:34 +02:00
epenet
b53ae884a6
Add missing hass type hint in component tests (o) ( #124226 )
2024-08-19 16:16:34 +02:00
Erik Montnemery
110ee9ff35
Strip trailing / from OTBR url ( #124223 )
2024-08-19 16:06:20 +02:00
Erik Montnemery
96edaebdd3
Remove unused function otbr.async_get_active_dataset_tlvs ( #124210 )
2024-08-19 13:15:50 +02:00
epenet
e8157ed9a2
Improve type hints in otbr tests ( #123814 )
2024-08-13 16:08:15 +02:00
Erik Montnemery
054242ff0f
Require specifying extended address in otbr WS API calls ( #108282 )
...
Co-authored-by: Stefan Agner <stefan@agner.ch >
2024-07-17 09:04:54 +02:00
epenet
bfff3c0524
Add type hint to mock_async_zeroconf in test fixtures ( #119057 )
2024-06-07 12:09:18 +02:00
epenet
a5dc4cb1c7
Fix incorrect zeroconf type hint in tests ( #118465 )
...
* Fix incorrect `mock_async_zeroconf` type hint
* Adjust thread
* One more
* Fix mock_zeroconf also
* Adjust
* Adjust
2024-05-30 21:57:09 +02:00
epenet
242ee04642
Improve type hints in tests (i-p) ( #118380 )
2024-05-30 08:47:08 +02:00
epenet
44f715bd02
Use issue_registry fixture in component tests ( #118041 )
2024-05-24 15:54:20 +02:00
Joost Lekkerkerker
5d500cb74b
Use is in enum comparison in config flow tests K-O ( #114672 )
2024-04-02 11:21:42 -10:00
puddly
fc34453caa
Support the Home Assistant Connect ZBT-1 ( #114213 )
2024-03-27 18:20:48 +01:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com >
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com >
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-03-26 00:02:16 +01:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
Marc Mueller
1722e23df8
Add empty line after module docstring [tests l-p] ( #112710 )
2024-03-08 14:55:15 +01:00
J. Nick Koston
5267e4f5db
Fix race in otbr config flow ( #111044 )
...
* fix otbr
* Update homeassistant/components/otbr/config_flow.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
* unique ids should not change
* handle missing unique id
* handle missing unique id
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2024-02-21 22:02:44 -05:00
Marc Mueller
438d3b01b9
Use builtin TimeoutError [o-s] ( #109682 )
2024-02-05 12:14:37 +01:00
Erik Montnemery
fcfacaaabd
Store preferred border agent extended address for each thread dataset ( #109065 )
2024-01-31 00:57:46 +01:00
Erik Montnemery
823f268054
Randomize thread network names ( #108302 )
...
* Randomize thread network names
* Use PAN ID as network name suffix
* Apply suggestions from code review
Co-authored-by: Stefan Agner <stefan@agner.ch >
* Update tests
* Format code
* Change format of network name again
---------
Co-authored-by: Stefan Agner <stefan@agner.ch >
2024-01-23 22:58:28 +01:00
Erik Montnemery
cdb798bec0
Don't always set first thread dataset as preferred ( #108278 )
...
* Don't always set first thread dataset as preferred
* Update tests
* Make clarifying comments clearer
* Call asyncio.wait with return_when=ALL_COMPLETED
* Update otbr test
* Update homeassistant/components/thread/dataset_store.py
Co-authored-by: Stefan Agner <stefan@agner.ch >
* Update homeassistant/components/thread/dataset_store.py
---------
Co-authored-by: Stefan Agner <stefan@agner.ch >
2024-01-18 16:32:29 +01:00
Aarni Koskela
706add4a57
Switch formatting from black to ruff-format ( #102893 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev >
2023-11-27 14:38:59 +01:00
Erik Montnemery
94ad4786c3
Include extended address in response to WS otbr/info ( #98440 )
2023-08-15 09:48:29 +02:00
Erik Montnemery
71b92265af
Include border agent id in response to WS otbr/info ( #98394 )
...
* Include border agent id in response to WS otbr/info
* Assert border agent ID is not None
2023-08-15 09:17:47 +02:00
Erik Montnemery
6c7f50b5b2
Simplify error handling in otbr async_setup_entry ( #98395 )
...
* Simplify error handling in otbr async_setup_entry
* Create issue if the OTBR does not support border agent ID
* Update test
* Improve test coverage
* Catch the right exception
2023-08-15 08:27:50 +02:00
Erik Montnemery
e0fd83daab
Store preferred border agent ID for each thread dataset ( #98384 )
2023-08-14 15:47:18 +02:00
Erik Montnemery
318b8adbed
Set preferred router when importing OTBR dataset ( #98379 )
2023-08-14 13:40:32 +02:00
Erik Montnemery
1ee0c907b0
Improve OTBR factory reset ( #98017 )
...
Co-authored-by: Stefan Agner <stefan@agner.ch >
2023-08-08 11:38:01 +02:00
Erik Montnemery
b53eae2846
Add WS command for changing thread channels ( #94525 )
2023-07-19 10:48:32 +02:00
Erik Montnemery
c79fa87a7f
Fix check for HA Yellow radio in otbr config flow ( #96789 )
2023-07-17 22:21:52 +02:00