Commit Graph

601 Commits (drop-ignore-missing-annotations)

Author SHA1 Message Date
J. Nick Koston 68dbe34b89
Add Bluetooth WebSocket API to subscribe to scanner details (#136750) 2025-01-28 13:06:24 -10:00
J. Nick Koston c55caabbff
Abort Bluetooth options flow if local adapters do not support passive scans (#136748) 2025-01-28 13:05:53 -10:00
J. Nick Koston 1face8df56
Bump habluetooth to 3.13.0 (#136749) 2025-01-28 20:43:00 +01:00
J. Nick Koston e0ea5bfc51
Add Bluetooth WebSocket API to subscribe to connection allocations (#136215) 2025-01-27 11:49:49 -10:00
J. Nick Koston f8dc3d6624
Bump habluetooth to 3.12.0 (#136281) 2025-01-22 10:14:19 -10:00
J. Nick Koston 29f9c88041
Bump habluetooth to 3.11.2 (#136221) 2025-01-22 09:59:15 +01:00
J. Nick Koston 6ee4eb2280
Bump bluetooth-adapters to 0.21.1 (#136220) 2025-01-22 09:56:41 +01:00
J. Nick Koston 561e027dee
Bump habluetooth to 3.10.0 (#136210) 2025-01-21 13:27:09 -10:00
J. Nick Koston 3bcef79562
Bump bleak-retry-connector to 3.8.0 (#136203) 2025-01-21 11:28:11 -10:00
J. Nick Koston be2c592b17
Bump habluetooth to 3.9.2 (#136042) 2025-01-20 08:01:44 +01:00
J. Nick Koston 0d968267a2
Improve remote Bluetooth scanner manufacturer data (#135961)
Co-authored-by: Joostlek <joostlek@outlook.com>
2025-01-19 11:55:13 +01:00
J. Nick Koston fe4e001fa5
Bump bluetooth-adapters to 0.21.0 (#135957) 2025-01-18 15:10:15 -10:00
J. Nick Koston 09ae388f4e
Bump bleak-retry-connector to 3.7.0 (#135939) 2025-01-18 12:02:18 -10:00
J. Nick Koston fc1b6292cd
Bump dbus-fast to 2.30.2 (#135874) 2025-01-17 13:05:18 -10:00
J. Nick Koston 51d277fc0c
Bump bluetooth-data-tools to 1.22.0 (#135879) 2025-01-17 12:06:01 -10:00
J. Nick Koston b98e1a1d2f
Bump habluetooth to 3.9.0 (#135877) 2025-01-17 12:05:41 -10:00
Joost Lekkerkerker ef8b8fbbaa
Enable RUF023 (#135830) 2025-01-17 12:28:27 +01:00
J. Nick Koston c215aee940
Reduce duplicate code in the Bluetooth WebSocket API (#135808) 2025-01-17 10:30:14 +02:00
Marc Mueller 46b17b539c
Use new syntax for TypeVar defaults (#135780) 2025-01-17 09:12:52 +01:00
J. Nick Koston daac986e00
Bump dbus-fast to 2.29.0 (#135804) 2025-01-16 15:10:01 -10:00
J. Nick Koston 6e255060c6
Add Bluetooth config entries for remote scanners (#135543) 2025-01-16 09:52:52 -10:00
Joost Lekkerkerker 9f7a38f189
Enable RUF022 (#135767) 2025-01-16 13:48:24 +01:00
Joost Lekkerkerker 8a35261fd8
Remove unused noqas (#135583) 2025-01-15 10:02:18 +01:00
Franck Nijhof 60bdc13c94
Drop Python 3.12 support (#135589) 2025-01-14 16:23:15 +01:00
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
J. Nick Koston 619dee5d93
Bump habluetooth to 3.8.0 (#135322)
changelog: https://github.com/Bluetooth-Devices/habluetooth/compare/v3.7.0...v3.8.0
2025-01-10 23:50:03 +02:00
J. Nick Koston 85ecb04abf
Bump dbus-fast to 2.28.0 (#135049)
changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v2.24.3...v2.28.0
2025-01-08 10:19:03 +02:00
J. Nick Koston 74613ae0c4
Bump habluetooth to 3.7.0 (#134833) 2025-01-05 12:44:37 -10:00
J. Nick Koston 039df1070e
Bump bluetooth-adapters to 0.20.2 (#130877) 2024-11-18 18:56:33 +01:00
J. Nick Koston a64972fe38
Bump habluetooth to 3.6.0 (#128815) 2024-10-21 09:45:24 +02:00
Marc Mueller 747f7a1b04
Update habluetooth to 3.5.0 (#127690) 2024-10-06 02:28:06 +02:00
Marc Mueller 65c0d49c3b
Update bleak to 0.22.3 (#127688) 2024-10-06 01:51:53 +02:00
Marc Mueller cba9e5845d
Update bleak-retry-connector to 3.6.0 (#127686) 2024-10-06 01:21:39 +02:00
Marc Mueller c6e5011a98
Update bluetooth-adapters to 0.20.0 (#127684) 2024-10-06 00:54:23 +02:00
Marc Mueller d58b2d1b32
Update dbus-fast to 2.24.3 (#127683) 2024-10-06 00:22:42 +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 61ff40c299
Add base Entity classes to enforce-class-module pylint plugin (#126473) 2024-09-24 08:52:07 +02:00
epenet 6bc2d11c5e
Add base Entity class to enforce-class-module pylint plugin (#126026)
* Add base Entity class to enforcé-class-module pylint plugin

* Ignore bluetooth

* Ignore hue

* Ignore dominos

* Ignore ffmpeg

* Ignore mqtt

* Ignore microsoft_face

* Ignore plant

* Ignore point

* Ignore rfxtrx

* Ignore template

* Ignore tag

* Ignore deconz
2024-09-18 20:38:45 +02:00
J. Nick Koston 9334099bed
Bump habluetooth to 3.4.0 (#125058)
changelog: https://github.com/Bluetooth-Devices/habluetooth/compare/v3.3.2...v3.4.0
2024-09-02 11:28:42 +02:00
J. Nick Koston fa084143ef
Bump dbus-fast to 2.24.0 (#124737)
changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v2.23.0...v2.24.0
2024-08-27 23:58:11 +02:00
J. Nick Koston b63fb9f17f
Bump bluetooth-data-tools to 1.20.0 (#124542)
changelog: https://github.com/Bluetooth-Devices/bluetooth-data-tools/compare/v1.19.4...v1.20.0
2024-08-24 18:18:54 -10:00
J. Nick Koston ad362b1d4c
Bump dbus-fast to 2.23.0 (#124384) 2024-08-22 07:48:25 +02:00
J. Nick Koston 1d1a6ee52f
Bump habluetooth to 3.3.2 (#124321) 2024-08-20 12:50:37 -05:00
J. Nick Koston c717e7a6f6
Bump bluetooth-adapters to 0.19.4 (#124018)
Fixes a call to enumerate USB devices that did blocking
I/O
2024-08-16 07:12:17 -05:00
J. Nick Koston aa801d9cc6
Bump bluetooth-data-tools to 1.19.4 (#122886) 2024-07-30 18:20:55 -05:00
J. Nick Koston e262f759af
Speed up bluetooth matching (#122626)
- use a defaultdict to avoid lots of setdefault
- move the intersection outside of the genexpr
  to avoid entering the genexpr if there is no
  intersection
2024-07-26 09:22:56 +02:00
Marc Mueller ca55986057
Import Generator from collections.abc (1) (#120914) 2024-07-01 11:51:51 +02:00
J. Nick Koston 30e0bcb324
Bump dbus-fast to 2.22.1 (#120491) 2024-06-26 09:20:43 +02:00
J. Nick Koston 0247f91855
Bump bleak to 0.22.2 (#120325) 2024-06-24 18:32:32 +02:00
J. Nick Koston b7bf61a8c9
Bump habluetooth to 3.1.3 (#120337) 2024-06-24 17:35:33 +02:00
J. Nick Koston bd6164ad4b
Bump bluetooth-data-tools to 1.19.3 (#120323) 2024-06-24 17:10:57 +02:00
J. Nick Koston 1a27cea6f2
Bump bluetooth-adapters to 0.19.2 (#120324) 2024-06-24 15:25:08 +02:00
Marc Mueller b798d76706
Update mypy-dev to 1.11.0a9 (#120289) 2024-06-24 09:57:15 +02:00
Marc Mueller fe21e2b8ba
Import Generator from typing_extensions (1) (#118986) 2024-06-06 17:02:13 +02:00
J. Nick Koston bdc3bb57f3
Bump habluetooth to 3.1.1 (#117992) 2024-05-23 20:43:14 +02:00
J. Nick Koston 9454dfc719
Bump habluetooth to 3.1.0 (#117905) 2024-05-22 12:28:13 +02:00
J. Nick Koston 7c58f05898
Bump dbus-fast to 2.21.3 (#117824) 2024-05-20 16:27:02 -10:00
Marc Mueller b93312b62c
Use PEP 695 for class annotations (1) (#117775) 2024-05-20 10:42:57 +02:00
Marc Mueller 87bb7ced79
Use PEP 695 for simple type aliases (#117633) 2024-05-17 14:42:21 +02:00
J. Nick Koston f1e8262db2
Bump bleak to 0.22.1 (#117383) 2024-05-16 12:36:27 +09:00
J. Nick Koston 9c97269fad
Bump dbus-fast to 2.21.2 (#117195) 2024-05-14 05:52:43 +09:00
Marc Mueller 4f4389ba85
Improve bluetooth generic typing (#117157) 2024-05-12 13:15:30 +02:00
J. Nick Koston 19c26b79af
Move available property in BasePassiveBluetoothCoordinator to PassiveBluetoothDataUpdateCoordinator (#117056) 2024-05-08 17:45:57 -05:00
J. Nick Koston 1d833d3795
Avoid storing Bluetooth scanner in hass.data (#117074) 2024-05-08 16:08:12 -05:00
J. Nick Koston de62e205dd
Bump bleak to 0.22.0 (#116955) 2024-05-08 07:35:33 -05:00
Sid 2cc916db6d
Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
Sid b456d97e65
Replace pylint protected-access with Ruff SLF001 (#115735) 2024-05-06 20:33:26 +02:00
J. Nick Koston a444b832ed
Bump bluetooth-adapters to 0.19.2 (#116785) 2024-05-04 10:26:14 -05: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
J. Nick Koston 43a0c880eb
Bump habluetooth to 2.8.1 (#116661) 2024-05-02 18:15:56 -05:00
J. Nick Koston fbe1781ebc
Bump bluetooth-adapters to 0.19.1 (#116465) 2024-04-30 11:53:55 -05:00
J. Nick Koston 6ccb165d8e
Fix bluetooth adapter discovery delaying startup and shutdown (#116335) 2024-04-28 08:57:31 -05:00
J. Nick Koston 421dbe1356
Bump bluetooth-auto-recovery to 1.4.2 (#116192) 2024-04-25 15:37:38 -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 0ea1564248
Bump bluetooth-adapters to 0.19.0 (#115864) 2024-04-20 01:36:46 +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 fbdef7f5cd
Bump habluetooth to 2.8.0 (#115789)
* Bump habluetooth to 2.8.0

Adds support for recovering some adapters that fail to initialize
due to kernel races

* bump lib

* tweak
2024-04-18 10:37:20 -04:00
J. Nick Koston 8fb551430d
Bump bluetooth-auto-recovery to 1.4.1 (#115792) 2024-04-17 20:38:17 -05:00
J. Nick Koston 98ed6e7fe5
Bump habluetooth to 2.7.0 (#115783) 2024-04-17 17:47:40 -05:00
J. Nick Koston 7a67304301
Bump habluetooth to 2.6.0 (#115724) 2024-04-17 09:41:42 -05:00
J. Nick Koston 6dcfe861fd
Bump habluetooth to 2.5.2 (#115721) 2024-04-16 18:34:57 -05:00
J. Nick Koston 7e84158fad
Avoid double dict conversion in bluetooth serialize_entity_description (#115551) 2024-04-13 18:08:38 -05:00
J. Nick Koston 2fdb420d1a
Bump bleak-retry-connector 3.5.0 (#115328) 2024-04-09 18:04:52 -10:00
J. Nick Koston ca5ed274cb
Deprecate calling async_listen and async_listen_once with run_immediately (#115169) 2024-04-08 10:07:54 -10:00
Sid a5b609f081
Enable ruff TRY401 (#114395)
* Enable ruff TRY401

* fix tests
2024-03-29 07:20:36 +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
J. Nick Koston 5e8265d8a4
Add run_immediately to bluetooth listeners (#113659) 2024-03-16 19:03:14 -10:00
J. Nick Koston 1f9c8694a8
Save bluetooth passive data eagerly at the stop event (#113648) 2024-03-16 19:02:57 -10:00
J. Nick Koston 3d1a65a1c3
Bump bluetooth-auto-recovery to 1.4.0 (#113368) 2024-03-13 17:13:22 -10:00
J. Nick Koston c948392ebc
Make Bluetooth active coordinator debouncers run tasks in the background (#113129) 2024-03-12 07:43:43 -10:00
Joost Lekkerkerker 23ffcaf187
Improve lists in integrations [B] (#113069) 2024-03-11 18:59:57 +01:00
Paulus Schoutsen f416d67d21
Remove built-in support for import_executor in manifest (#112725) 2024-03-08 12:02:32 -05:00
Marc Mueller ff3a801936
Add empty line after module docstring [a-d] (#112697) 2024-03-08 14:51:32 +01:00
Marc Mueller 4893087a7e
Add TypeVar defaults for DataUpdateCoordinator (#111949) 2024-03-08 11:14:16 +01:00
J. Nick Koston 0b0036fb12
Bump habluetooth to 2.4.2 (#111885) 2024-02-29 12:49:28 -10:00
Erik Montnemery 6fe28d3764
Migrate integrations a-d to generic flowhandler (#111861) 2024-02-29 20:07:14 +01:00
J. Nick Koston 3c25e2a4bd
Small speed up to Bluetooth setup (#111677) 2024-02-27 12:43:44 -10:00