Commit Graph
11873 Commits
Author SHA1 Message Date
Jc2k a332eb154c Add reauth flow to xiaomi_ble, fixes problem adding LYWSD03MMC (#76028) 2022-08-02 09:37:38 +02:00
Joakim PlateandMartin Hjelmare 990975e908 Convert fjäråskupan to built in bluetooth (#75380)
* Add bluetooth discovery

* Use home assistant standard api

* Fixup manufacture data

* Adjust config flow to use standard features

* Fixup tests

* Mock bluetooth

* Simplify device check

* Fix missing typing

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-08-02 09:37:29 +02:00
rhadamantysandMartin Hjelmare 2a58bf06c1 Fix invalid enocean unique_id (#74508)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-08-02 09:37:25 +02:00
mvn23 d205fb5064 Handle failed connection attempts in opentherm_gw (#75961) 2022-07-31 13:29:42 -07:00
J. Nick Koston 26c475d3dc Update to bleak 0.15 (#75941) 2022-07-29 17:55:17 -07:00
Jc2k 2b1fbbfae3 Fix Xiaomi BLE not detecting encryption for some devices (#75851) 2022-07-29 13:40:05 +02:00
J. Nick KostonandMartin Hjelmare e4e36b51b6 Add startup timeout to bluetooth (#75848)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-29 13:36:42 +02:00
Paulus Schoutsen 937fd490f2 Add issue_domain to repairs (#75839) 2022-07-28 19:07:36 +02:00
Paulus Schoutsen 96587c1227 Remove learn more URL from Home Assistant alerts (#75838) 2022-07-28 19:07:34 +02:00
Tom Harris 70731c0bc7 Add Insteon lock and load controller devices (#75632) 2022-07-28 19:07:26 +02:00
Robert Svensson 3b8650d053 Make Axis utilise forward_entry_setups (#75178) 2022-07-28 19:07:23 +02:00
Tobias Sauerwein 49854b809c Netatmo entity renaming and clean up (#75337) 2022-07-27 14:17:38 +02:00
Franck Nijhof 07a433a516 Deprecate the OpenALPR Local integration (#75810)
* Deprecate the OpenALPR Local integration

* Remove tests
2022-07-27 12:52:13 +02:00
Jc2kandMartin Hjelmare f8b115dd9d Add xiaomi_ble voltage, consumable and formaldehyde sensors (#75807)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-27 11:28:58 +01:00
Franck Nijhof aaf5837759 Deprecate the Ambee integration (#75805) 2022-07-27 11:29:52 +02:00
51c3836ec2 Create Repairs based on Alerts (#75397)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-27 10:13:16 +02:00
TheJulianJES 129b42cd23 Fix ZHA light brightness jumping around during transitions (#74849)
* Moved color commands to a new ``async_handle_color_commands`` method

* Fixed tests

* Fix brightness jumping around during transitions

* Add config option to disable "Enhanced brightness slider during light transition"
2022-07-26 20:03:17 -04:00
Franck Nijhof 0ff34f232c Add events to repairs issue registry changes (#75784) 2022-07-26 22:42:19 +02:00
Bouwe Westerdijk aaaca0b2bd Add tests for the Plugwise Select platform (#75774) 2022-07-26 22:02:50 +02:00
J. Nick Koston 1e85ddabfd Fix startup race in BLE integrations (#75780) 2022-07-26 09:29:23 -10:00
uvjustin 9ad273a59f Fix entity typo (#75767) 2022-07-26 16:27:16 +02:00
J. Nick Koston 5cb4bbd906 Fix min and max mireds with HKC (#75744) 2022-07-26 04:17:28 -10:00
Matthias Alphart a98f658854 Update xknx to 0.22.0 (#75749) 2022-07-26 10:32:26 +02:00
Franck Nijhof 5e45b0baf9 Automatically set up Xiaomi BLE during onboarding (#75748) 2022-07-26 08:03:31 +01:00
On Freund ce4e53938c Change monoprice config flow to sync (#75306) 2022-07-25 21:24:39 -07:00
Joakim Sørensen e87c2b9e25 Bump pytraccar to 1.0.0 (#75671) 2022-07-26 00:45:01 +02:00
Brett Adams ea354f3d5f Remove deprecated MyZone service in Advantage Air (#75160) 2022-07-25 23:56:36 +02:00
hahn-th f4e7436421 Add device HmIP-STE2-PCB to homematicip_cloud (#75369) 2022-07-25 18:15:02 +02:00
J. Nick Koston a813cf987b Add bluetooth options flow to pick the adapter (#75701) 2022-07-25 16:52:35 +02:00
TheJulianJES b8ae883f18 Set min transition time for Sengled lights in ZHA groups (#75644)
* Set min transition time for Sengled lights in ZHA groups

* Change test to expect correct min transition time for group with Sengled light

* Fix turn_off with transition 0 for Sengled lights
2022-07-25 08:13:01 -04:00
J. Nick Koston 22ca28b93d Ensure bluetooth can be reloaded when hot plugging a bluetooth adapter (#75699) 2022-07-24 19:23:23 -05:00
J. Nick Koston bbb9443b00 Fix bluetooth integration matching with service_data_uuids and service_uuids (#75687)
* Fix bluetooth integration with service_data and service_uuids

We would only dispatch a new flow when the address was seen for
the first time or the manufacturer_data appeared in a followup
advertisement. Its also possible for the service_data and
service_uuids to appear in a followup advertisement so we
need to track these as well

* improve logging to avoid overly large messages

* improve logging to avoid overly large messages

* adjust

* adjsut

* split

* coverage

* coverage

* coverage

* coverage

* fix matcher

* more coverage

* more coverage

* more coverage

* revert switchbot changes and move to seperate PR
2022-07-24 16:39:53 -05:00
J. Nick Koston d890598da7 Update PySwitchbot to improve connection reliability (#75692) 2022-07-24 16:38:07 -05:00
Aaron Bach 2d4bd4d7c1 Revert SimpliSafe auth flow to the quasi-manual OAuth method from 2021.11.0 (#75641)
* Revert "Migrate SimpliSafe to new web-based authentication (#57212)"

This reverts commit bf7c99c1f8.

* Tests 100%

* Version bump

* Add manifest version for custom component testing

* Remove manifest version

* Code review

* Fix tests
2022-07-24 22:09:02 +02:00
Jc2kandMartin Hjelmare e18819c678 Support for encrypted BLE MiBeacon devices (#75677)
* Support for encrypted devices

* Sensor should use bindkey if available

* Error message if encryption fails

* Let mypy know this is always set by now

* Towards supporting encryption in step_user

* Add tests for the 4 new happy paths

* Add test coverage for failure cases

* Add strings

* Bump to 0.5.1. Legacy MiBeacon does not use an authentication token, so harder to detect incorrect key

* Add _title() helper

* Fix test after rebase

* Update homeassistant/components/xiaomi_ble/strings.json

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Remove unused lines

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-24 21:00:56 +02:00
J. Nick KostonandMartin Hjelmare 198167a2c8 Update switchbot to be local push (#75645)
* Update switchbot to be local push

* fixes

* fixes

* fixes

* fixes

* adjust

* cover is not assumed anymore

* cleanups

* adjust

* adjust

* add missing cover

* import compat

* fixes

* uses lower

* uses lower

* bleak users upper case addresses

* fixes

* bump

* keep conf_mac and deprecated options for rollback

* reuse coordinator

* adjust

* move around

* move around

* move around

* move around

* refactor fixes

* compat with DataUpdateCoordinator

* fix available

* Update homeassistant/components/bluetooth/passive_update_processor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/bluetooth/passive_update_coordinator.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/bluetooth/update_coordinator.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Split bluetooth coordinator into PassiveBluetoothDataUpdateCoordinator and PassiveBluetoothProcessorCoordinator

The PassiveBluetoothDataUpdateCoordinator is now used to replace instances
of DataUpdateCoordinator where the data is coming from bluetooth
advertisements, and the integration may also mix in active updates

The PassiveBluetoothProcessorCoordinator is used for integrations that
want to process each bluetooth advertisement with multiple processors
which can be dispatched to individual platforms or areas or the integration
as it chooes

* change connections

* reduce code churn to reduce review overhead

* reduce code churn to reduce review overhead

* Update homeassistant/components/bluetooth/passive_update_coordinator.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* add basic test

* add basic test

* complete coverage

* Update homeassistant/components/switchbot/coordinator.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/switchbot/coordinator.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/switchbot/__init__.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/switchbot/__init__.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* lint

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-24 11:38:45 -05:00
J. Nick KostonandMartin Hjelmare ba71a3c24d Add Govee BLE integration (#75631)
* Add Govee BLE integration

* add missing files

* remove test file not needed yet

* fix

* add bbq sensors

* fixed lib

* bump again to fix the names

* fix discovery of the newer bbq devices

* fix the test to test the right thing

* verify no outstanding flows

* only accept entities that match the platform

* refactor

* refactor

* refactor

* Refactor PassiveBluetoothDataUpdateCoordinator to support multiple platforms

* cover

* Update for new model

* Update for new model

* Update tests/components/govee_ble/test_sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* purge dead code

* backmerge from integration

* Update docstring

* Update docstring

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-24 10:39:23 +02:00
Dave TandDave T 7075032bf7 Fix diagnostics export for generic camera (#75665)
Fix url redaction and add tests

Co-authored-by: Dave T <davet2001@users.noreply.github.com>
2022-07-24 10:21:01 +02:00
J. Nick KostonandMartin Hjelmare 82c92b5634 Add Moat (BLE) integration (#75643)
* Add Moat (BLE) integration

* fix pin

* resync

* Update tests/components/moat/test_sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/moat/sensor.py

* backmerge from integration

* purge dead code

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-24 09:51:14 +02:00
J. Nick Koston da131beced Split bluetooth coordinator into two classes (#75675) 2022-07-23 19:33:47 -05:00
On Freund 7cf2d1759d Upgrade pyrisco to 0.5.0 (#75648)
* Upgrade to pyrisco 0.4.0

* Parametrized error tests in config flow

* Inline error parameters

* Switch to RiscoCloud
2022-07-23 23:44:48 +02:00
J. Nick Koston c5afaa2e6a Refactor PassiveBluetoothDataUpdateCoordinator to support multiple platforms (#75642) 2022-07-23 13:03:01 -05:00
J. Nick Koston 240bbfa080 Retry later if bluetooth fails to start (#75647) 2022-07-23 12:00:34 -05:00
J. Nick Koston 759add5184 Add state class to HKC sensors (#75662) 2022-07-23 11:14:06 -05:00
Franck Nijhof 8d6247446b Automatically set up Bluetooth during onboarding (#75658) 2022-07-23 10:47:12 -05:00
Jelte Zeilstra 5e10716dd8 Do not access hass.data in unifi test (#75348)
* Do not access hass.data in test

* Process review feedback
2022-07-23 12:42:43 +02:00
Jc2k b60a59270c Add support for rest of sensors for HHCCJCY01 (#75646) 2022-07-23 09:40:56 +01:00
J. Nick Koston edaebcd85d Pass in the bleak scanner instance to HKC (#75636) 2022-07-23 02:47:02 -05:00
J. Nick Koston 326e05dcf1 Fix async_get_scanner to return the correct bluetooth scanner (#75637) 2022-07-22 18:12:08 -05:00
Maciej Bieniek cb543a21b3 Address NextDNS late review (#75635)
* Init instance attributes

* Remove condition

* Improve typing in tests

* Suggested change
2022-07-23 00:58:48 +02:00