Commit Graph

40400 Commits (89493f2d7f64110288db4253a2909f5d73c30c32)

Author SHA1 Message Date
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 511af3c455
Update switchbot bluetooth matchers for sensor devices (#75690) 2022-07-24 16:55:52 -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
Franck Nijhof c9ae409d9a
Update sentry-sdk to 1.8.0 (#75691) 2022-07-24 22:38:09 +02: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
Marc Mueller c0e6852077
Update pip version range to 22.3 (#75572) 2022-07-24 21:11:30 +02:00
Jc2k 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
starkillerOG f94a79b409
Bump motionblinds to 0.6.11 (#75581) 2022-07-24 20:59:25 +02:00
Glenn Waters 9fae638f65
Migrate ElkM1 to new entity naming style (#75023) 2022-07-24 20:40:42 +02:00
J. Nick Koston 0df08b6b0c
Bump aiohomekit to 1.2.0 (#75686) 2022-07-24 20:12:16 +02:00
J. Nick Koston 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
mvn23 79be87f9ce
Update pyotgw to 2.0.1 (#75663) 2022-07-24 10:48:22 +02:00
J. Nick Koston 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 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 Koston 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
Aaron Bach a499dfb8ff
Fix AssertionError in RainMachine (#75668) 2022-07-23 20:06:10 -06:00
J. Nick Koston da131beced
Split bluetooth coordinator into two classes (#75675) 2022-07-23 19:33:47 -05:00
GitHub Action 19f82e5201 [ci skip] Translation update 2022-07-24 00:28:19 +00: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 8300d5b89e
Add bluetooth connection constant to the device registry (#75666) 2022-07-23 19:59:35 +02:00
J. Nick Koston 240bbfa080
Retry later if bluetooth fails to start (#75647) 2022-07-23 12:00:34 -05:00
Joakim Sørensen 2951a941b6
Import correct scan interval in traccar (#75660) 2022-07-23 18:44:58 +02: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
uvjustin b71e3397fd
Add error message for duplicate stream recordings (#75654) 2022-07-23 08:40:45 -07:00
James 5c234a3504
Use CO Device Class Instead of Gas in zwave_js (#75649)
Use CO Device Class Instead of Gas

Switches the carbon monoxide sensor from `Gas` to `CO`
2022-07-23 13:24:34 +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
GitHub Action 8e86124470 [ci skip] Translation update 2022-07-23 00:25:17 +00: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
Jc2k 402e533fef
Initial xiaomi_ble integration (#75618)
* Initial xiaomi_ble integration

* black

* Update homeassistant/components/xiaomi_ble/config_flow.py

Co-authored-by: Ernst Klamer <e.klamer@gmail.com>

* Update homeassistant/components/xiaomi_ble/config_flow.py

Co-authored-by: Ernst Klamer <e.klamer@gmail.com>

* Apply suggestions from code review

Co-authored-by: Ernst Klamer <e.klamer@gmail.com>

* Update tests/components/xiaomi_ble/test_config_flow.py

Co-authored-by: Ernst Klamer <e.klamer@gmail.com>

* Update homeassistant/components/xiaomi_ble/sensor.py

Co-authored-by: Ernst Klamer <e.klamer@gmail.com>

* Update tests/components/xiaomi_ble/test_config_flow.py

Co-authored-by: Ernst Klamer <e.klamer@gmail.com>

* Remove debug code

* Need 'proper' MAC when running tests on linux

* Need to use proper MAC so validation passes

* Add tests for already_in_progress and already_configured

* copy test, add session fixture

* fix test

Co-authored-by: Ernst Klamer <e.klamer@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-07-23 00:55:06 +02:00
Maciej Bieniek 5b555066ea
Add new NextDNS sensors (#74789) 2022-07-23 00:18:22 +02:00
J. Nick Koston 38bccadaa6
Add support for setting up and removing bluetooth in the UI (#75600)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-07-22 13:19:53 -05:00
J. Nick Koston 20b6c4c48e
Fix recorder hanging at start (#75627) 2022-07-22 12:37:25 -05:00
Martin Hjelmare c05905ebda
Remove callback decorator from coroutine functions (#75626)
* Remove callback decorator from coroutine functions

* Remove some more callback decorators
2022-07-22 19:09:02 +02:00
Diogo F. Andrade Murteira 148f963510
Add Switchbot hygrometers (#75325)
* Switchbot add support for hygrometers

* Update CODEOWNERS

* Improve debug

* Remove redundant mention to temp unit

* Adopt FlowResultType

* Modify SwitchBot data within coordinator

* Increase logging for switchbot sensor

* Revert "Increase logging for switchbot sensor"

This reverts commit d8b377429c.

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-07-22 11:03:02 -05:00
Marc Mueller e9697872c8
Fix small homekit type error (#75617) 2022-07-22 09:02:10 -05:00
Erik Montnemery fd6ffef52f
Support non-live database migration (#72433)
* Support non-live database migration

* Tweak startup order, add test

* Address review comments

* Fix typo

* Clarify comment about promoting dependencies

* Tweak

* Fix merge mistake

* Fix some tests

* Fix additional test

* Fix additional test

* Adjust tests

* Improve test coverage
2022-07-22 15:11:34 +02:00
Erik Montnemery 9d0a252ca7
Improve handling of MQTT config entry data (#72691)
* Improve handling of MQTT config entry data

* Add test

* Add warning

* Adjust tests
2022-07-22 13:36:43 +02:00
Erik Montnemery 606d544157
Use recorder get_instance function to improve typing (#75567) 2022-07-22 11:58:26 +02:00
G Johansson 06c8eb0304
Migrate SMHI to new entity naming style (#75213) 2022-07-22 11:57:36 +02:00
Aaron Bach 630c28d253
Fix incorrect battery unit on paired Guardian sensors (#75402) 2022-07-22 11:24:07 +02:00
Erik Montnemery f0eea62c1e
Address some MQTT review comments (#75482) 2022-07-22 11:12:00 +02:00
Thijs W dddd4e24e2
Bump afsapi to 0.2.7 (#75579) 2022-07-22 11:11:31 +02:00
uvjustin a612d7a0f3
Round up for stream record lookback (#75580) 2022-07-22 11:46:00 +08:00
J. Nick Koston 06115bcbff
Add inkbird (BLE) integration (#75594) 2022-07-21 22:17:09 -05:00
Aaron Bach b0261dd2eb
Modify Guardian to store a single dataclass in `hass.data` (#75454)
* Modify Guardian to store a single dataclass in `hass.data`

* Clarity is better

* Allow entry unload to cancel task
2022-07-21 20:32:42 -06:00
J. Nick Koston 67e16d77e8
Add SensorPush BLE integration (#75531) 2022-07-21 20:31:23 -05:00
GitHub Action 36138afb93 [ci skip] Translation update 2022-07-22 00:29:27 +00:00
J. Nick Koston 90ca3fe350
Improve availability tracking and coordinator setup in bluetooth (#75582) 2022-07-21 19:16:45 -05:00
TheJulianJES 975378ba44
Add ZHA config option for "enhanced light transition from an off-state" (#75151)
* Add ZHA config option for "enhanced light transition from an off-state"

* Default option to disabled

* Always disable "enhanced light transition" for ZHA LightGroups

* Rename _enhanced_light_transition to _zha_config_enhanced_light_transition

* Remove LightGroup check, as config option always disables for groups

* Remove duplicated line

* Remove duplicated line

* Move ZHA config transition line below other config line

* Renamed comments of renamed variable in tests
color_provided_while_off -> new_color_provided_while_off

* Enable "enhanced light transitions" for testing
2022-07-21 19:46:16 -04:00
David F. Mulcahey 04c6b9c519
ZHA light entity cleanup (#75573)
* use base class attributes

* initial hue and saturation support

* spec is 65536 not 65535

* fixes

* enhanced current hue

* fix comparison

* clean up

* fix channel test

* oops

* report enhanced current hue
2022-07-21 17:54:50 -04:00
J. Nick Koston 6cb1794720
Bump aiohomekit to 1.1.9 (#75591) 2022-07-21 15:58:45 -05:00
Maciej Bieniek 05b463b282
Migrate AccuWeather to new entity naming style (#75127)
* Use new entity naming style

* Move AccuWeatherSensorDescription and SENSOR consts to sensor platform

* Remove duplicate code

* Suggested change

* Format url
2022-07-21 18:38:59 +02:00
J. Nick Koston f3c4bf571b
Raise on bad update data instead of log in PassiveBluetoothDataUpdateCoordinator (#75536) 2022-07-21 09:44:53 -05:00
Franck Nijhof 8523c66bb5
Deprecate U.S. Citizenship and Immigration Services (USCIS) integration (#75562) 2022-07-21 13:56:55 +02:00
Marc Mueller b1ed1543c8
Improve http decorator typing (#75541) 2022-07-21 13:07:42 +02:00
Thibault Cohen 1d7d2875e1
Add websocket command recorder/import_statistics (#73937)
* Expose ws_add_external_statistics in websocket API

* Refactor

* Add tests

* Improve test coverage

Co-authored-by: Thibault Cohen <titilambert@users.noreply.github.com>
Co-authored-by: Erik <erik@montnemery.com>
2022-07-21 12:36:49 +02:00
Bram Kragten 41f6383957
Update icons for breaking changes in MDI 7.0.96 (#75560) 2022-07-21 12:24:29 +02:00
Franck Nijhof baeb55e313
Add sync methods for create/deleting issues in repairs (#75557) 2022-07-21 11:11:51 +02:00
Erik Montnemery c861259749
Hide inactive repairs issues (#75556) 2022-07-21 10:56:53 +02:00
Brandon Rothweiler 46551a50ef
Bump pymazda to 0.3.7 (#75546) 2022-07-21 09:04:04 +02:00
GitHub Action 87797c8b66 [ci skip] Translation update 2022-07-21 00:26:18 +00:00
Marc Mueller ca1f0909fb
Fix spelling in recorder integration (#75539) 2022-07-20 19:13:10 -05:00
Marc Mueller ac858cc2b5
Improve singleton helper typing (#75461)
* Improve singleton helper typing

* Fix type errors
2022-07-21 00:19:02 +02:00
J. Nick Koston 6da25c733e
Add coordinator and entity for passive bluetooth devices (#75468)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-20 15:54:37 -05:00
Maciej Bieniek 01c105b89c
Use `DeviceInfo.hw_version` in DenonAVR integration (#75300) 2022-07-20 22:34:49 +02:00
Ville Skyttä b749622c01
Migrate Huawei LTE to new entity naming style (#75303) 2022-07-20 22:28:53 +03:00
Shay Levy 079460d2dd
Bump aioshelly to 2.0.1 (#75523) 2022-07-20 21:11:05 +02:00
Aaron Bach a91ca46342
Fix incorrect Ambient PWS lightning strike sensor state classes (#75520) 2022-07-20 19:29:23 +02:00
Klaas Schoute 7ba3227d52
Fix - Forcast.solar issue on saving settings in options flow without api key (#75504) 2022-07-20 19:27:11 +02:00
J. Nick Koston 48e82ff62f
Fix failure to raise on bad YAML syntax from include files (#75510)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-07-20 19:25:17 +02:00
Franck Nijhof 4395b967f2
Remove Google Play Music Desktop Player (GPMDP) integration (#75508) 2022-07-20 20:15:55 +03:00
Franck Nijhof 518001f00b
Remove SoChain integration (#75505) 2022-07-20 19:58:48 +03:00
Franck Nijhof 87cfe21567
Remove XBee integration (#75502) 2022-07-20 19:55:33 +03:00
Franck Nijhof 877a4030aa
Add repairs as frontend dependency (#75501) 2022-07-20 16:29:07 +02:00
starkillerOG 8ad2bed363
Fix Netgear update entity (#75496) 2022-07-20 15:51:54 +02:00
Erik Montnemery fb4aff25a2
Create issues in demo integration (#75081)
* Create issues in demo integration

* Add unfixable non-expiring issue

* Update test

* Adjust tests

* update translations

* add hassfest translation schema

* Update homeassistant/components/demo/translations/en.json

Co-authored-by: Zack Barett <zackbarett@hey.com>

* Rename Resolution Center -> Repairs

* Update homeassistant/components/demo/strings.json

Co-authored-by: Zack Barett <zackbarett@hey.com>

* Adjust hassfest to require description or fix_flow

* Update homeassistant/components/demo/repairs.py

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

* Update tests/components/demo/test_init.py

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

* Add missing translation strings

* black

* Adjust repairs imports

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Zack Barett <zackbarett@hey.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-20 14:46:06 +02:00
Franck Nijhof 3920844dca
Adjust repairs re-exports (#75492) 2022-07-20 14:00:35 +02:00
Pascal Winters 95e07508e5
Bump pySwitchbot to 0.14.1 (#75487) 2022-07-20 12:57:00 +02:00
Zach Berger 712492b066
Update awair SensorDeviceClass to specify icon (#75385) 2022-07-20 12:08:34 +02:00
Franck Nijhof 39dc9aa179
Rename Resolution Center -> Repairs (#75486) 2022-07-20 12:06:52 +02:00
Marc Mueller a3b2b5c328
Add zha typing [classmethods] (#75472) 2022-07-20 12:03:30 +02:00
Jan Bouwhuis 5ef92e5e95
Fix MQTT race awaiting an ACK when disconnecting (#75117)
Co-authored-by: Erik <erik@montnemery.com>
2022-07-20 11:58:54 +02:00
Franck Nijhof 11e7ddaa71
Plugwise prefer use of Adam instead of Anna (#75161)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-20 11:58:17 +02:00
Franck Nijhof 460837e453
Allow account linking to phase out services (#75447) 2022-07-20 11:43:46 +02:00
Franck Nijhof fe97f6791d
Map % RH unit in Tuya sensors (#75483) 2022-07-20 11:40:34 +02:00
Franck Nijhof 2db8b154c9
Update orjson to 3.7.8 (#75484) 2022-07-20 11:39:07 +02:00
Franck Nijhof 93425b0e4d
Migrate Plugwise to new entity naming style (#75109) 2022-07-20 11:38:00 +02:00
Franck Nijhof 05d2b955ee
Migrate CPUSpeed to new entity naming style (#75080) 2022-07-20 11:31:17 +02:00
Franck Nijhof b62ebbe974
Migrate DSMR to new entity naming style (#75077) 2022-07-20 11:30:08 +02:00
Franck Nijhof 0e59e8b925
Migrate Moon to new entity naming style (#75085) 2022-07-20 11:24:15 +02:00
Aaron Bach 3d31e62683
Modify Ridwell to store a single dataclass in `hass.data` (#75457) 2022-07-20 11:18:26 +02:00
Aaron Bach 2b752355d6
Modify Tile to store a single dataclass in `hass.data` (#75459) 2022-07-20 11:15:30 +02:00
Raman Gupta 8c7e329754
Bump pytomorrowio to 0.3.4 (#75478) 2022-07-20 09:15:36 +02:00
uvjustin d989e4373d
Remove websocket_api send_big_result (#75452) 2022-07-19 21:08:11 -07:00
Marc Mueller 51ed9ee59d
Fix bluetooth service_info typing (#75477)
* Fix bluetooth service_info typing

* Remove additional type ignores

* Remove pylint disable
2022-07-20 05:46:18 +02:00