Commit Graph

1102 Commits (f97b50f76218a65e9318b9149be2cbd4c348aad4)

Author SHA1 Message Date
Bram Kragten 29797b93f7
Update frontend to 20221228.0 (#84696) 2022-12-28 16:35:50 +01:00
J. Nick Koston 75739d8621
Bump zeroconf to 0.47.1 (#84523) 2022-12-23 18:35:44 -10:00
J. Nick Koston 8c70e5aaad
Try the next best adapter after a BLE connection fails (#84512)
* Try the next best adapter after a BLE connection fails

* add cover

* tweak

* tweak

* Update homeassistant/components/bluetooth/wrappers.py

* bump

* small tweak

* tweak logic
2022-12-23 20:48:47 -05:00
J. Nick Koston 070aa714a0
Switch to a different local Bluetooth adapter when one runs out of connection slots (#84331) 2022-12-23 08:58:33 -10:00
Franck Nijhof f17a42dc27
Upgrade ciso8601 to 2.3.0 (#84465) 2022-12-22 15:01:59 -05:00
J. Nick Koston 17d674e1cc
Bump zeroconf to 0.47.0 (#84420) 2022-12-21 19:18:58 -10:00
Steven Looman 682501eb47
Less tasks when receiving SSDP messages (#84186)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-12-21 11:35:52 -10:00
J. Nick Koston 88ef8cc51a
Bump bluetooth-data-tools to 0.3.1 (#84258)
changelog: https://github.com/Bluetooth-Devices/bluetooth-data-tools/compare/v0.3.0...v0.3.1
2022-12-19 22:45:39 +02:00
Aaron Godfrey fe2e357ae9
Upgrade attrs to 22.1.0 (#84205) 2022-12-19 12:40:30 +01:00
J. Nick Koston f1fc54d29d
Bump zeroconf to 0.44.0 (#84166) 2022-12-19 11:56:11 +01:00
J. Nick Koston c70faeae96
Bump bluetooth-auto-recovery to 1.0.3 (#84075)
* Bump bluetooth-auto-recovery to 1.0.1

changelog: https://github.com/Bluetooth-Devices/bluetooth-auto-recovery/compare/v1.0.0...v1.0.1

Handles the case were the adapter gets a new hci number
after a usb reset.

* one more

* bump again
2022-12-16 09:25:23 -05:00
Bram Kragten b0b3b36392
Update frontend to 20221213.1 (#84058) 2022-12-15 11:35:02 -05:00
Bram Kragten 42a9069338
Update frontend to 20221213.0 (#83940) 2022-12-13 13:24:24 -05:00
J. Nick Koston 7c6806e75d
Fix bleak-retry-connector get_device hang with HAOS 9.4 and only proxies (#83879)
The bleak connection setup to dbus hangs forever instead of errors if
there are no local bluetooth adapters and we are using remote proxies.

The library now times out when this happens instead of hanging
forever.

changelog: https://github.com/Bluetooth-Devices/bleak-retry-connector/compare/v2.10.1...v2.10.2
2022-12-12 21:29:39 -05:00
Bram Kragten 5ef972c5d9
Update frontend to 20221212.0 (#83842) 2022-12-12 18:52:47 +01:00
J. Nick Koston 876258e68a
Bump bluetooth-auto-recovery to 1.0.0 (#83800)
fixes https://github.com/home-assistant/core/issues/83673
2022-12-12 11:49:57 +01:00
Paulus Schoutsen 1c0543bcd5
Drop aiohttp to 3.8.1 (#83795) 2022-12-11 21:19:02 -05:00
J. Nick Koston 9008006ac8
Restore remote discovered devices between remote scanner restarts (#83699) 2022-12-11 09:02:55 -10:00
J. Nick Koston df0f694b01
Bump dbus-fast to 1.82.0 (#83682)
performance improvements for HAOS 9.4 passive monitoring

changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.80.0...v1.82.0
2022-12-09 20:55:20 -05:00
J. Nick Koston 558dceac42
Bump dbus-fast to 1.80.0 (#83601)
changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.79.0...v1.80.0

performance improvements
2022-12-09 05:03:09 +01:00
J. Nick Koston 52f754e83d
Bump bluetooth-auto-recovery to 0.5.5 (#83597)
changelog: https://github.com/Bluetooth-Devices/bluetooth-auto-recovery/compare/v0.5.4...v0.5.5

fixes #78036
2022-12-08 20:29:14 -05:00
J. Nick Koston 8193ddf61a
Bump dbus-fast to 1.79.0 (#83598)
HA OS 9.4 adds support for passive scanning, however
a different path is used in dbus-fast to get the passive
results which was never optimized which caused passive
scanning to use more cpu time than active scanning.

changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.75.0...v1.79.0
2022-12-08 20:28:52 -05:00
Bram Kragten ee8a2d1e25
Update frontend to 20221208.0 (#83551) 2022-12-08 17:18:39 +01:00
Bram Kragten dfb0887765
Update frontend to 20221207.0 (#83479) 2022-12-07 17:46:42 +01:00
Joakim Sørensen 41e4f10977
Bump hass-nabucasa from 0.59.0 to 0.61.0 (#83466) 2022-12-07 13:17:45 +01:00
Franck Nijhof 552a87dfcc
Upgrade grpcio(-status) to 1.51.1 (#83420) 2022-12-06 21:57:06 +01:00
Bram Kragten 75c5137e77
Update frontend to 20221206.0 (#83415) 2022-12-06 13:21:28 -05:00
J. Nick Koston 1ee9c0cb8d
Fix bluetooth device connection failure when device is seen by dbus but not bleak (#83281) 2022-12-05 22:34:21 -05:00
Bram Kragten 91cdf0ecf7
Update frontend to 20221205.0 (#83349) 2022-12-05 23:59:54 +01:00
Michael Chisholm 7378277212
Update async-upnp-client to 0.32.3 (#83215) 2022-12-04 10:05:53 -08:00
J. Nick Koston 955d4abf13
Fix missing services with esp32 proxies (#83192) 2022-12-03 13:50:59 -05:00
J. Nick Koston 6651dfaf9b
Bump bluetooth-auto-recovery to 0.5.4 (#83155)
changelog: https://github.com/Bluetooth-Devices/bluetooth-auto-recovery/compare/v0.5.3...v0.5.4
2022-12-02 19:48:06 -05:00
J. Nick Koston 144f1b918b
Fix logging the wrong bluetooth adapter while connecting and out of slots (#83158) 2022-12-02 13:24:12 -10:00
Michaël Arnauts 5a8cf38552
Update pycomfoconnect to 0.5.1 (#83124) 2022-12-02 10:38:29 -10:00
J. Nick Koston 8eeba490d1
Update aiobafi6 to 0.7.3 (#83073) 2022-12-02 14:56:02 +01:00
J. Nick Koston ccb5910db0
Bump bleak-retry-connector to 2.8.7 (#83095)
changelog: https://github.com/Bluetooth-Devices/bleak-retry-connector/compare/v2.8.6...v2.8.7
2022-12-02 08:08:56 +01:00
Bram Kragten 18e4c065eb
Update frontend to 20221201.1 (#83062) 2022-12-01 16:35:53 -05:00
Joakim Sørensen 817bbfe6aa
Bump hass-nabucasa from 0.56.0 to 0.59.0 (#82987)
* Bump hass-nabucasa from 0.56.0 to 0.58.0

* 0.59.0
2022-12-01 09:08:39 +01:00
Bram Kragten a3fe08b62b
Update frontend to 20221130.0 (#83014) 2022-11-30 23:28:24 +01:00
J. Nick Koston d620b199fc
Bump bleak-retry-connector to 2.8.6 (#83011) 2022-11-30 23:10:06 +01:00
Marvin Wichmann 1908feab79
Increase file upload limit to 100 MB (#77117)
* Increase file upload limit to 100 MB

* Remove comment

* Add test and fix chunk processing

* Add test for wrong field

* Add review suggestions

* Use nonlocal and remove unneeded executor task

* Use Janus to process chunk uploading

* Address review comments

* Address review comments #2

* Improve tests

* Fix discovery test

* Fix tests
2022-11-29 20:46:34 -05:00
Joakim Plate c576a68d33
Upgrade pytest-aiohttp (#82475)
* Upgrade pytest-aiohttp

* Make sure executors, tasks and timers are closed

Some test will trigger warnings on garbage collect, these warnings
spills over into next test.

Some test trigger tasks that raise errors on shutdown, these spill
over into next test.

This is to mimic older pytest-aiohttp and it's behaviour on test
cleanup.

Discussions on similar changes for pytest-aiohttp are here:
https://github.com/pytest-dev/pytest-asyncio/pull/309

* Replace loop with event_loop

* Make sure time is frozen for tests

* Make sure the ConditionType is not async

  /home-assistant/homeassistant/helpers/template.py:2082: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
    def wrapper(*args, **kwargs):
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

* Increase litejet press tests with a factor 10

The times are simulated anyway, and we can't stop the normal
event from occuring.

* Use async handlers for aiohttp

tests/components/motioneye/test_camera.py::test_get_still_image_from_camera
tests/components/motioneye/test_camera.py::test_get_still_image_from_camera
tests/components/motioneye/test_camera.py::test_get_stream_from_camera
tests/components/motioneye/test_camera.py::test_get_stream_from_camera
tests/components/motioneye/test_camera.py::test_camera_option_stream_url_template
tests/components/motioneye/test_camera.py::test_camera_option_stream_url_template
  /Users/joakim/src/hass/home-assistant/venv/lib/python3.9/site-packages/aiohttp/web_urldispatcher.py:189: DeprecationWarning: Bare functions are deprecated, use async ones
    warnings.warn(

* Switch to freezegun in modbus tests

The tests allowed clock to tick in between steps

* Make sure skybell object are fully mocked

Old tests would trigger attempts to post to could services:

```
DEBUG:aioskybell:HTTP post https://cloud.myskybell.com/api/v3/login/ Request with headers: {'content-type': 'application/json', 'accept': '*/*', 'x-skybell-app-id': 'd2b542c7-a7e4-4e1e-b77d-2b76911c7c46', 'x-skybell-client-id': '1f36a3c0-6dee-4997-a6db-4e1c67338e57'}
```

* Fix sorting that broke after rebase
2022-11-29 22:36:36 +01:00
J. Nick Koston d885e45ebb
Bump bluetooth-auto-recovery to 0.5.3 (#82909) 2022-11-29 12:50:54 +01:00
Franck Nijhof 35e81cf982
Update aiohttp to 3.8.3 (#78860) 2022-11-28 20:42:10 +01:00
J. Nick Koston d6e287f47a
Add manufacturer and model to bluetooth adapter device (#82769)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-11-27 15:44:44 -05:00
J. Nick Koston 6662dbf3c8
Bump bluetooth-auto-recovery to 0.5.2 (#82768) 2022-11-27 14:27:59 -05:00
uvjustin 9390359fe3
Bump httpx to 0.23.1 (#82725) 2022-11-26 10:04:22 -10:00
J. Nick Koston 9add474c45
Bump bleak-retry-connector to 2.8.5 (#82387)
changelog: https://github.com/Bluetooth-Devices/bleak-retry-connector/compare/v2.8.4...v2.8.5

from: https://github.com/esphome/esphome/pull/4049
2022-11-19 19:46:06 -05:00
J. Nick Koston f28d9285bf
Bump dbus-fast to 1.75.0 (#82289) 2022-11-17 23:02:35 +01:00
J. Nick Koston 47c66dbed4
Offload platform specific bluetooth code to bluetooth-adapters (#82196)
* Offload platform specific bluetooth code to bluetooth-adapters

* adjust

* fix some more patch targets

* more test fixes

* almost there

* may not be setup yet

* more fixes

* fixes

* fix test

* fix merge
2022-11-17 14:34:19 -05:00
J. Nick Koston 4b89d087bb
Bump home-assistant-bluetooth to 1.8.1 (#82222)
changelog: https://github.com/home-assistant-libs/home-assistant-bluetooth/compare/v1.8.0...v1.8.1
2022-11-16 23:08:17 +02:00
J. Nick Koston 08398370c5
Bump dbus-fast to 1.74.1 (#82202) 2022-11-16 11:26:47 -06:00
J. Nick Koston 1f0691bf18
Bump bluetooth-auto-recovery to 0.4.0 (#82195) 2022-11-16 17:07:01 +01:00
J. Nick Koston 682187541f
Move BluetoothServiceInfoBleak to home_assistant_bluetooth (#82064) 2022-11-15 14:00:52 -06:00
Franck Nijhof 19e5e671a2
Update sqlalchemy to 1.4.44 (#82129) 2022-11-15 08:51:13 -06:00
J. Nick Koston f497b989b9
Bump dbus-fast to 1.74.0 (#82107)
changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.73.0...v1.74.0
2022-11-15 15:27:54 +01:00
J. Nick Koston 62bd692a58
Bump bluetooth-data-tools to 0.3.0 (#82016)
prep work for #82007

changelog: https://github.com/Bluetooth-Devices/bluetooth-data-tools/compare/v0.2.0...v0.3.0
2022-11-13 09:47:24 +01:00
J. Nick Koston de48ae2e53
Bump dbus-fast to 1.73.0 (#81959)
changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.72.0...v1.73.0
2022-11-11 23:22:22 +01:00
J. Nick Koston 777bf27dda
Bump bleak-retry-connector to 2.8.4 (#81937)
changelog: https://github.com/Bluetooth-Devices/bleak-retry-connector/compare/v2.8.3...v2.8.4

reduces the risk that the operation will fail because the adapter
temporarily runs out of connection slots
2022-11-11 08:51:58 +01:00
Bram Kragten 014c2d487d
Update frontend to 20221108.0 (#81787) 2022-11-08 15:00:30 +01:00
J. Nick Koston b7533aff48
Replace led-ble util with bluetooth-data-tools (#81093) 2022-11-08 07:26:16 -06:00
J. Nick Koston 9c3bd22e77
Bump bleak to 0.19.2 (#81688) 2022-11-06 19:07:21 -06:00
J. Nick Koston c3946159d8
Bump bleak-retry-connector to 2.8.3 (#81675)
Improves chances of making a BLE connection with the ESP32s

changelog: https://github.com/Bluetooth-Devices/bleak-retry-connector/compare/v2.8.2...v2.8.3
2022-11-07 00:45:53 +01:00
J. Nick Koston b18a1e6d7c
Bump dbus-fast to 1.72.0 (#81574) 2022-11-06 08:12:58 -06:00
Steven Looman a635e9c9d2
Fix repeating SSDP errors by checking address scope_ids and proper hostname (#81611) 2022-11-05 17:11:59 -05:00
J. Nick Koston 089c4a7da2
Bump bluetooth-adapters to 0.7.0 (#81576)
changelog: https://github.com/Bluetooth-Devices/bluetooth-adapters/releases/tag/v0.7.0
2022-11-05 10:44:05 +01:00
J. Nick Koston ca905a8c05
Bump dbus-fast to 1.71.0 (#81541)
performance improvements

changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.67.0...v1.71.0
2022-11-04 15:29:15 +01:00
J. Nick Koston 93072d8ac5
Bump dbus-fast to 1.67.0 (#81517)
Bump dbus to 1.67.0

The bleak BlueZ clients use the negotiate_unix_fd path
which was not optimized but is now.  (The scanners already
used a fast path)

changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.64.0...v1.67.0
2022-11-04 06:34:23 +01:00
J. Nick Koston 905005e1e8
Bump dbus-fast 1.64.0 (#81462)
- Performance improvements

changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.61.1...v1.64.0
2022-11-03 12:51:38 +01:00
Franck Nijhof 7556f2b84e
Update cryptography to 38.0.3 (#81455) 2022-11-03 11:18:25 +01:00
Bram Kragten 76819d81be
Update frontend to 20221102.1 (#81422) 2022-11-02 20:25:31 +01:00
Bram Kragten 44f63252e7
Update frontend to 20221102.0 (#81405) 2022-11-02 11:52:19 +01:00
J. Nick Koston 10aa1d386a
Bump dbus-fast to 1.61.1 (#81386) 2022-11-01 20:52:13 -04:00
J. Nick Koston 54df052699
Bump bleak-retry-connector to 2.8.2 (#81370)
* Bump bleak-retry-connector to 2.8.2

Tweaks for the esp32 proxies now that we have better error
reporting. This change improves the retry cases a bit with
the new https://github.com/esphome/esphome/pull/3971

* empty
2022-11-01 21:49:05 +01:00
Franck Nijhof e22f69ea8c
Update Pillow to 9.3.0 (#81343) 2022-11-01 11:34:44 +02:00
Bram Kragten 4a9859bf54
Update frontend to 20221031.0 (#81324) 2022-10-31 20:42:18 +01:00
J. Nick Koston 3764f7d95b
Bump zeroconf to 0.39.4 (#81313) 2022-10-31 12:35:43 -05:00
J. Nick Koston 5ba3b499fe
Bump dbus-fast to 1.60.0 (#81296) 2022-10-31 09:18:49 -04:00
J. Nick Koston 1bdd8fff44
Bump bleak-retry-connector to 2.8.1 (#81285)
* Bump bleak-retry-connector to 2.8.1

reduces logging now that we have found the problem
with esphome devices not disconnecting ble devices
after timeout

changelog: https://github.com/Bluetooth-Devices/bleak-retry-connector/compare/v2.8.0...v2.8.1

* empty
2022-10-31 00:28:38 -05:00
J. Nick Koston 1d94fbb176
Bump bleak-retry-connector to 2.8.0 (#81283) 2022-10-30 20:40:01 -05:00
J. Nick Koston 4fb6fa9cca
Bump bleak-retry-connector to 2.7.0 (#81280) 2022-10-30 19:24:32 -05:00
J. Nick Koston 1106df158d
Bump bleak-retry-connector to 2.6.0 (#81270) 2022-10-30 17:38:09 -05:00
J. Nick Koston d9d6902803
Bump dbus-fast to 1.59.1 (#81229)
* Bump dbus-fast to 1.59.1

fixes incorrect logging of an exception when it was already handled

changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.59.0...v1.59.1

* empty
2022-10-30 11:32:57 +01:00
J. Nick Koston 7f047cf95c
Bump dbus-fast to 1.59.0 (#81215)
* Bump dbus-fast to 1.59.0

changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.58.0...v1.59.0

* empty
2022-10-29 15:06:17 -04:00
J. Nick Koston ccfa314e87
Update to bleak 0.19.1 and bleak-retry-connector 2.5.0 (#81198) 2022-10-29 14:25:35 -04:00
J. Nick Koston 91efe68cdd
Bump dbus-fast to 1.58.0 (#81195) 2022-10-29 14:22:46 -04:00
J. Nick Koston effe8d9207
Bump dbus-fast to 1.56.0 (#81177)
* Bump dbus-fast to 1.56.0

Addes optimized readers for manufacturer data
and interfaces added messages

changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.55.0...v1.56.0

* empty
2022-10-29 09:40:40 +02:00
J. Nick Koston e47f06fde8
Bump dbus-fast to 1.54.0 (#81148)
* Bump dbus-fast to 1.53.0

changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.51.0...v1.53.0

* 54
2022-10-28 21:01:03 -04:00
Bram Kragten c7d342a719
Update frontend to 20221027.0 (#81114) 2022-10-27 23:13:43 +02:00
J. Nick Koston 588277623f
Bump dbus-fast to 1.51.0 (#81109) 2022-10-27 15:38:53 -04:00
J. Nick Koston 6e19629539
Bump zeroconf to 0.39.3 (#81049) 2022-10-27 01:03:13 +02:00
J. Nick Koston 2a6f2f431d
Bump dbus-fast to 1.49.0 (#81043) 2022-10-26 14:39:27 -05:00
Paulus Schoutsen 00f72f8b2a
Bump frontend to 20221026.0 (#81042) 2022-10-26 21:32:55 +02:00
Franck Nijhof d65e639f00
Update orjson to 3.8.1 (#81000) 2022-10-26 12:40:15 +02:00
Steven Looman b5f70a404a
Fix SSDP/UPnP server after testing (#80815) 2022-10-24 15:19:19 -05:00
J. Nick Koston f61c010116
Bump bleak-retry-connector to 2.4.2 (#80908) 2022-10-24 14:27:04 -05:00
J. Nick Koston 9978296ae2
Bump bleak-retry-connector to 2.4.0 (#80887) 2022-10-24 09:28:59 -05:00
J. Nick Koston b952797298
Bump bleak-retry-connector to 2.3.2 (#80790) 2022-10-22 16:14:11 -05:00
Bram Kragten 1ac2d4ae74
Update frontend to 20221021.0 (#80751) 2022-10-21 20:29:28 -04:00
J. Nick Koston 90f6924808
Bump zeroconf to 0.39.2 (#80699)
python 3.11 support & performance improvements

changelog: https://github.com/jstasiak/python-zeroconf/compare/0.39.1...0.39.2
2022-10-20 20:32:32 -04:00