J. Nick Koston
c9a7afe439
Add bluetooth API to remove scanners that are no longer used ( #135408 )
2025-01-12 14:03:05 -10:00
J. Nick Koston
cdc96fdf6f
Add bluetooth subscribe_advertisements WebSocket API ( #134291 )
2025-01-10 16:49:53 -10:00
Erik Montnemery
7ec911c4df
Correct typing in rediscovery tests ( #127777 )
2024-10-07 08:42:04 +02:00
J. Nick Koston
41fcf58b80
Fix bluetooth tests to not create the same config entry twice ( #127461 )
2024-10-03 10:37:34 -05:00
Erik Montnemery
7d61cb1ef5
Remove unignore flow ( #126765 )
2024-09-25 20:29:14 +02:00
Erik Montnemery
b6fe3a3022
Reinitialize bluetooth discovery flow on config entry removal ( #126555 )
...
* Reinitialize bluetooth discovery flow on unignore
* Update homeassistant/components/bluetooth/manager.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Update tests
* Rediscover on any removed config entry
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-24 14:42:46 +02:00
epenet
489ceab4b5
Add missing hass type hint in component tests (b) ( #124065 )
2024-08-18 15:39:26 +02:00
epenet
3e967700fd
Add missing return type in test __init__ method (part 2) ( #123939 )
...
* Add missing return type in test __init__ method (part 2)
* Adjust
* One more
* One more
* More
2024-08-14 17:59:15 +02:00
epenet
5608301178
Add missing return type in test __init__ methods ( #123932 )
...
* Add missing return type in test __init__ methods
* Adjust
2024-08-14 16:48:52 +02:00
epenet
ad26db7dc8
Replace pylint broad-exception-raised rule with ruff ( #123021 )
2024-08-02 12:24:03 +02:00
Marc Mueller
6be4ef8a1f
Improve contextmanager typing ( #122250 )
2024-07-20 14:09:37 +02:00
Marc Mueller
2f0dd6f704
Import Generator from collections.abc (2) ( #120915 )
2024-07-01 11:58:49 +02:00
Joost Lekkerkerker
6ef8e87f88
Fix ruff redefined-argument-from-local PLR1704 ( #120729 )
...
* Fix PLR1704
* Fix
2024-06-28 12:31:07 +02:00
epenet
3e9d25f81d
Add missing argument type hints to component tests ( #119671 )
2024-06-14 09:26:46 +02:00
epenet
38a6e666a7
Add missing return type to some test functions ( #119665 )
2024-06-14 08:26:45 +02:00
epenet
7d631c28a6
Ignore attribute-defined-outside-init pylint warnings in tests ( #119470 )
2024-06-12 12:22:31 +02:00
epenet
2a7e78a80f
Ignore broad-exception-raised pylint warnings in tests ( #119468 )
2024-06-12 12:21:41 +02:00
epenet
5531e54745
Ignore no-name-in-module warnings in tests ( #119401 )
2024-06-11 16:37:07 +02:00
epenet
572700a326
Ignore c-extension-no-member pylint warnings in tests ( #119378 )
2024-06-11 12:57:43 +02:00
epenet
632238a7f9
Move mock_bluetooth* fixtures to decorator ( #118846 )
2024-06-06 17:31:08 +02:00
Marc Mueller
279483ddb0
Import Generator from typing_extensions (2) ( #118989 )
2024-06-06 17:24:22 +02:00
epenet
80975d7a63
Move None bluetooth fixtures to decorator ( #118802 )
2024-06-04 16:26:07 +02:00
epenet
44f715bd02
Use issue_registry fixture in component tests ( #118041 )
2024-05-24 15:54:20 +02:00
Thomas55555
528d67ee06
Remove unused snapshots [a-f] ( #117999 )
2024-05-24 08:28:04 +02:00
Marc Mueller
10dfa91e54
Remove useless TypeVars ( #117687 )
2024-05-18 12:58:51 +02:00
J. Nick Koston
2b2b46c774
Bump habluetooth to 3.0.1 ( #116663 )
2024-05-03 12:15:51 +02:00
J. Nick Koston
c07f02534b
Migrate bluetooth to use the singleton helper ( #116629 )
2024-05-02 19:35:16 -05:00
Erik Montnemery
c9301850be
Reduce scope of bluetooth test fixtures ( #116210 )
2024-04-26 09:03:49 -05:00
J. Nick Koston
bb2bd086bc
Add missing adapter data to Bluetooth config entry titles ( #115930 )
2024-04-23 21:52:55 +02:00
J. Nick Koston
1d6ae01baa
Handle Bluetooth adapters in a crashed state ( #115790 )
...
* Skip bluetooth discovery for Bluetooth adapters in a crashed state
* fixes
* fixes
* adjust
* coverage
* coverage
* fix race
2024-04-18 15:06:53 -05:00
J. Nick Koston
53c48537d7
Add bluetooth adapter model and manufacturer to config flow ( #115780 )
...
* Show bluetooth adapter model and manufacturer in config flow
If there are multiple adapters, it could be a bit difficult
to figure out which one is which
* Show bluetooth adapter model and manufacturer in config flow
If there are multiple adapters, it could be a bit difficult
to figure out which one is which
* reorder
* reorder
* names
* remove
* fix incomplete mocking
* more missing mocks
2024-04-18 10:39:32 -04:00
J. Nick Koston
98ed6e7fe5
Bump habluetooth to 2.7.0 ( #115783 )
2024-04-17 17:47:40 -05:00
J. Nick Koston
6dcfe861fd
Bump habluetooth to 2.5.2 ( #115721 )
2024-04-16 18:34:57 -05:00
Sid
5f055a64bb
Enable Ruff B017 ( #115335 )
2024-04-15 22:25:09 +02:00
Sid
d61db732da
Enable Ruff SLOT rules ( #115043 )
2024-04-09 18:57:27 -10:00
epenet
0b01326f9f
Use is in ConfigEntryState enum comparison in tests (A-M) ( #114925 )
2024-04-05 17:16:55 +02:00
Joost Lekkerkerker
9b41e3d124
Use is in enum comparison in config flow tests A-E ( #114669 )
2024-04-02 11:22:05 -10: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
Sid
27e844e3bf
Add ruff B005, B015, B032 and fix occurrences ( #113543 )
...
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-15 17:48:37 -10:00
soonsouth
cfc2f17f35
Remove repetitive words in comments and docstrings ( #113529 )
...
chore: remove repetitive words
Signed-off-by: soonsouth <cuibuwei@163.com>
2024-03-15 18:11:12 +01:00
J. Nick Koston
c948392ebc
Make Bluetooth active coordinator debouncers run tasks in the background ( #113129 )
2024-03-12 07:43:43 -10:00
J. Nick Koston
a2318c26c9
Run debouncer tasks eagerly to avoid scheduling on the event loop ( #112789 )
2024-03-10 08:37:10 -10: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
38adfbf1a3
Add empty line after module docstring [tests a-e] ( #112708 )
2024-03-08 08:50:25 -05:00
J. Nick Koston
e25b097376
Import bluetooth in the executor to avoid blocking the event loop ( #111596 )
2024-02-27 07:05:39 -10:00
Marc Mueller
2ef2172b01
Convert test helpers to get hass instance to contextmanagers ( #109990 )
...
* Convert get_test_home_assistant helper to contextmanager
* Convert async_test_home_assistant helper to contextmanager
* Move timezone reset to async_test_home_assistant helper
2024-02-11 21:23:51 +01:00
Joost Lekkerkerker
6519b24319
Make bluetooth use naming from the entity description ( #97401 )
...
* Make bluetooth use the translation from the entity description
* Remove links to other platforms
* Remove links to other platforms
* Remove links to other platforms
* Add test
* Use is
* Fix test
* Update homeassistant/components/bluetooth/passive_update_processor.py
Co-authored-by: J. Nick Koston <nick@koston.org>
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-02-06 17:12:15 +01:00
Marc Mueller
c82933175d
Use builtin TimeoutError [a-d] ( #109678 )
2024-02-05 11:31:33 +01:00
J. Nick Koston
8d4a1f475e
Bump habluetooth to 2.3.1 ( #108628 )
2024-01-21 18:39:17 -10:00