Commit Graph

13322 Commits (d65eaf11f4529d47fa9d46931dd399aed5c01b25)

Author SHA1 Message Date
mkmer 5ef6b5a300
Add BLE sensor to Aladdin_connect (#76221)
* Add BLE sensor
Default Enable BLE & Battery for Model 02

* recommended changes

* Recommended changes

Model 02 -> 01 (oops)
2x async_block_till_done() not needed.
2022-08-17 09:09:19 +02:00
Charles Garwood 7e366a78e6
Add Fully Kiosk Browser button platform (#76894)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-08-17 08:36:56 +02:00
J. Nick Koston ee1b08bbd6
Bump govee-ble to 0.16.0 (#76882) 2022-08-16 21:21:47 -04:00
Franck Nijhof ec1b133201
Add DHCP updates to Fully Kiosk (#76896) 2022-08-16 21:19:23 -04:00
J. Nick Koston 6f3cdb6db1
Reorganize bluetooth integration to prepare for remote and multi-adapter support (#76883) 2022-08-16 14:52:53 -10:00
Charles Garwood 8070875ff4
Add Fully Kiosk Browser sensor platform (#76887) 2022-08-17 00:20:30 +02:00
Paulus Schoutsen 59878ea1ef
Indieauth updates (#76880) 2022-08-16 17:17:10 -04:00
rikroe cb2799bc37
Fix displayed units for BMW Connected Drive (#76613)
* Fix displayed units

* Add tests for unit conversion

* Streamline test config entry init

* Refactor test to pytest fixture

* Fix renamed mock

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-08-16 21:36:33 +02:00
Charles Garwood 1e9ede25ad
Add Fully Kiosk Browser integration with initial binary sensor platform (#76737)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-08-16 20:08:35 +02:00
Igor Pakhomov 65f86ce44f
Add additional select for dmaker.airfresh.t2017 to xiaomi_miio (#67058) 2022-08-16 17:30:56 +02:00
Franck Nijhof d50b5cebee
Various improvement for JustNimbus (#76858)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-08-16 17:10:11 +02:00
Erik Montnemery 73001e29ff
Remove deprecated white_value support from MQTT light (#76848)
* Remove deprecated white_value support from MQTT light

* Remove deprecated white_value support from MQTT JSON light

* Remove deprecated white_value support from MQTT template light
2022-08-16 16:47:21 +02:00
Marc Mueller 563ec67d39
Add strict typing for auth (#75586) 2022-08-16 10:10:37 -04:00
Franck Nijhof 00c0ea8869
Remove stale debug prints (#76865) 2022-08-16 09:33:33 -04:00
Martin Hjelmare 45b253f65f
Clean awair debug print (#76864) 2022-08-16 14:58:55 +02:00
Paulus Schoutsen c7d46bc719
Improve Awair config flow (#76838) 2022-08-16 14:30:07 +02:00
jonasrickert 3e1c9f1ac7
Add Rollotron DECT 1213 to fritzbox (#76386) 2022-08-16 11:49:31 +02:00
Jc2k a663445f25
Bump aiohomekit to 1.3.0 (#76841) 2022-08-16 10:34:17 +01:00
J. Nick Koston b43242ef0d
Fix lifx homekit discoveries not being ignorable or updating the IP (#76825) 2022-08-15 21:09:13 -04:00
Erik Montnemery 1c1b23ef69
Correct referenced entities and devices for event triggers (#76818) 2022-08-15 17:35:30 -04:00
J. Nick Koston 4890785299
Fix bluetooth callback registration not surviving a reload (#76817) 2022-08-15 10:19:37 -10:00
Aidan Timson 64898af58e
Update systembridgeconnector to 3.4.4 (#75362)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-08-15 15:00:29 +02:00
Álvaro Fernández Rojas cf867730cd
Update aioqsw to v0.2.2 (#76760) 2022-08-15 12:12:31 +02:00
epenet 6243f24b05
Add media-player checks to pylint plugin (#76675)
* Add media-player checks to pylint plugin

* Fix invalid hints

* Add tests

* Adjust tests

* Add extra test

* Adjust regex

* Cleanup comment

* Move media player tests up
2022-08-15 09:48:03 +02:00
J. Nick Koston 9dedba4843
Fix bad data with inkbird bbq sensors (#76739) 2022-08-14 20:48:06 -10:00
Jan Bouwhuis 161e533c5f
Remove MQTT climate support for hold and away modes (#76299)
Remove support for hold and away modes
2022-08-15 08:27:37 +02:00
Jan Bouwhuis f72cfef7be
Fix MQTT camera encoding (#76124)
* Fix MQTT camera encoding

* Reduce code

* Add test for using image_encoding parameter

* Move deprecation check to validation

* Dependency

* Set correct strings and log warning

* Rename constant

* Use better issue string identifier

* Revert unwanted change to hassio test

* Avoid term `deprecated` in issue description

* Revert changes using the repairs API

* Add a notice when work-a-round will be removed

* Update homeassistant/components/mqtt/camera.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-08-15 08:26:17 +02:00
Christopher Bailey 7fc2d9e087
Persist previous mic/record values for UniFi Protect privacy mode (#76472) 2022-08-14 10:57:25 -10:00
J. Nick Koston f55c274d83
Add Qingping integration (BLE) (#76598)
* Add Qingping integration (BLE)

* commit the binary sensor

* add binary_sensor file

* Update homeassistant/components/qingping/sensor.py

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

* Update homeassistant/components/qingping/config_flow.py

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

* Update homeassistant/components/qingping/sensor.py

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

* fix const CONCENTRATION_MICROGRAMS_PER_CUBIC_METER

* cover case where config flow is started, another path adds it, and then they resume

* fix missed values

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-08-14 09:00:27 +02:00
Maciej Bieniek e44b1fa98c
Bump nettigo-air-monitor to 1.4.2 (#76670) 2022-08-13 10:32:58 +02:00
J. Nick Koston 58883feaf6
Small cleanups to Yale Access Bluetooth (#76691)
- Abort the discovery flow if the user has already
  started interacting with a user flow or bluetooth
  discovery

- Remove docs_url from the flow

- Fix useless return
2022-08-13 09:55:48 +02:00
J. Nick Koston eeb9a9f058
Make sure all discovery flows are using the helper (#76641) 2022-08-12 09:25:23 -04:00
Jc2k 46369b274b
Initial binary_sensor support for Xiaomi BLE (#76635) 2022-08-11 22:25:24 -10:00
Rami Mosleh 86b968bf79
Migrate Glances to new entity naming style (#76651)
* Migrate Glances to new entity naming style

* minor fixes
2022-08-12 09:50:27 +02:00
David F. Mulcahey 3937ac2ca3
Track code coverage for ZHA sensor entities (#76617)
* Track code coverage for ZHA sensor entities

* remove correct entry
2022-08-11 21:13:27 -04:00
J. Nick Koston 4f064268b0
Add missing _abort_if_unique_id_configured to ble integrations (#76624) 2022-08-11 13:55:52 -10:00
Jc2k 51ca74b3d1
Fix titles for discoveries and device names in xiaomi_ble (#76618) 2022-08-11 23:24:55 +01:00
Franck Nijhof f0827a20c3
Add schedule helper (#76566)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-08-11 16:14:01 +02:00
Zach Berger ebbff7b60e
Add Awair Local API support (#75535) 2022-08-11 09:01:35 -04:00
Antonino Piazza 9919dd500d
Improve code quality in huawei_lte (#76583)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-08-11 11:03:12 +02:00
Jc2k 6ad2708946
Support polling the MiFlora battery (#76342) 2022-08-11 10:10:18 +02:00
J. Nick Koston bf899101ce
Update offline keys from august cloud for august branded yale locks (#76577) 2022-08-10 16:21:41 -10:00
Brandon Rothweiler 58ac3eee3b
Always round down for Mazda odometer entity (#76500) 2022-08-10 23:56:20 +02:00
J. Nick Koston bb0038319d
Add Yale Access Bluetooth integration (#76182) 2022-08-10 10:08:02 -10:00
J. Nick Koston b1497b0857
Simplify switchbot config flow (#76272) 2022-08-10 09:02:08 -10:00
Jc2k 0639681991
Add new Bluetooth coordinator helper for polling mostly passive devices (#76549) 2022-08-10 18:56:34 +01:00
epenet 982d197ff3
Add number checks to pylint plugin (#76457)
* Add number checks to pylint plugin

* Adjust ancestor checks

* Add tests

* Add comments in tests
2022-08-10 16:30:58 +02:00
Artem Draft 19295d33ba
Migrate BraviaTV to new async backend (#75727) 2022-08-10 13:11:49 +02:00
J. Nick Koston ad361b8fc2
Fix pairing with HK accessories that do not provide format for vendor chars (#76502) 2022-08-09 09:48:48 -10:00
Maciej Bieniek 6eb1dbdb74
Add NextDNS binary sensor platform (#75266)
* Add binary_sensor platform

* Add tests

* Add quality scale

* Sort coordinators

* Remove quality scale

* Fix docstring
2022-08-09 17:51:04 +02:00
Maciej Bieniek 753a3c0921
Add new sensors to NextDNS integration (#76262)
* Add DNS-over-HTTP/3 sensors

* Update tests
2022-08-09 17:45:48 +02:00
Álvaro Fernández Rojas 46a8f19197
Update aioqsw to v0.2.0 (#76509) 2022-08-09 15:24:53 +02:00
Rami Mosleh f90d007e73
Add config flow to `android_ip_webcam` (#76222)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-08-09 14:08:46 +02:00
Jc2k 7d427ddbd4
Allow parsing to happen in PassiveBluetoothProcessorCoordinator (#76384) 2022-08-09 06:36:39 +01:00
Aaron Bach 759503f863
Ensure ConfirmRepairFlow can make use of translation placeholders (#76336)
* Ensure ConfirmRepairFlow can make use of translation placeholders

* Automatically determine the issue

* Fix tests

* Update homeassistant/components/repairs/issue_handler.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-08-08 16:46:48 -06:00
Sarabveer Singh 01de1c6304
Update HomeKit PM2.5 mappings to US AQI (#76358) 2022-08-08 11:49:07 -10:00
Koen van Zuijlen cefc535edb
Add JustNimbus integration (#75718)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-08-08 23:35:05 +02:00
Christopher Bailey d139d1e175
Add UniFi Protect media source (#73244) 2022-08-08 10:00:50 -10:00
uvjustin 6540bed59d
Defer preload stream start on startup (#75801) 2022-08-08 11:15:31 -04:00
Maciej Bieniek 9f240d5bab
Bump NextDNS backend library (#76300)
* Bump NextDNS backend library

* Update tests

* Update diagnostics tests

* Use fixtures
2022-08-08 07:52:36 -07:00
Pieter Mulder 7cd4be1310
Add tests for the HDMI-CEC integration (#75094)
* Add basic tests to the HDMI-CEC component

* Add tests for the HDMI-CEC switch component

* Add test for watchdog code

* Start adding tests for the HDMI-CEC media player platform

Also some cleanup and code move.

* Add more tests for media_player

And cleanup some switch tests.

* Improve xfail message for features

* Align test pyCEC dependency with main dependency

* Make fixtures snake_case

* Cleanup call asserts

* Cleanup service tests

* fix issues with media player tests

* Cleanup MockHDMIDevice class

* Cleanup watchdog tests

* Add myself as code owner for the HDMI-CEC integration

* Fix async fire time changed time jump

* Fix event api sync context

* Delint tests

* Parametrize watchdog test

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-08-08 13:47:05 +02:00
Laz a1d5a4bc79
Add Escea fireplace integration (#56039)
Co-authored-by: Teemu R. <tpr@iki.fi>
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-08-08 11:48:42 +02:00
Martin Hjelmare d1ab93fbaf
Add openexchangerates config flow (#76390) 2022-08-07 23:45:32 +02:00
Aaron Bach ceecab9559
Add update entity to RainMachine (#76100)
* Add update entity to RainMachine

* Fix tests

* Cleanup

* Test missing controller diagnostics

* Code review
2022-08-07 15:21:49 -06:00
J. Nick Koston 33b194e48d
Switch a few recent merges to use FlowResultType (#76416) 2022-08-07 10:01:32 -10:00
Aaron Bach e89459453b
Add more controller-related RainMachine diagnostics (#76409) 2022-08-07 13:44:27 -06:00
Avi Miller d14b76e7fc
Enable the LIFX diagnostic buttons by default (#76389) 2022-08-07 08:45:26 -10:00
Martin Hjelmare a6963e6a38
Add zwave_js usb port selection (#76385) 2022-08-07 11:06:03 -04:00
J. Nick Koston 1fe44d0997
Ensure bluetooth recovers if Dbus gets restarted (#76249) 2022-08-07 11:03:56 -04:00
Leonardo Figueiro 34984a8af8
Add switch to wilight (#62873)
* Created switch.py and support

* updated support.py

* test for wilight switch

* Update for Test

* Updated test_switch.py

* Trigger service with index

* Updated support.py and switch.py

* Updated support.py

* Updated switch.py as PR#63614

* Updated switch.py

* add type hints

* Updated support.py

* Updated switch.py

* Updated switch.py and services.yaml

* Updated pywilight

* Update homeassistant/components/wilight/switch.py

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

* Update homeassistant/components/wilight/switch.py

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

* Update homeassistant/components/wilight/switch.py

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

* Update homeassistant/components/wilight/switch.py

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

* Update ci.yaml

* Update ci.yaml

* Updated as pywilight

Renamed Device as PyWiLightDevice in pywilight.

* Updated as pywilight

Renamed Device as PyWiLightDevice in pywilight.

* Updated as pywilight

Renamed Device as PyWiLightDevice in pywilight.

* Updated as pywilight

Renamed Device as PyWiLightDevice in pywilight.

* Update switch.py

* Update homeassistant/components/wilight/support.py

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

* Update support.py

* Update switch.py

* Update support.py

* Update support.py

* Update switch.py

* Update switch.py

* Update services.yaml

* Update switch.py

* Update services.yaml

* Update switch.py

* Update homeassistant/components/wilight/switch.py

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

* Update homeassistant/components/wilight/switch.py

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

* Update homeassistant/components/wilight/switch.py

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

* Update switch.py

* Update switch.py

* Update switch.py

* Update test_switch.py

* Update test_switch.py

* Update test_switch.py

* Decrease exception scope

* Clean up

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-08-07 11:07:01 +02:00
Avi Miller 74cfdc6c1f
Add identify and restart button entities to the LIFX integration (#75568) 2022-08-06 17:28:30 -10:00
Martin Hjelmare e864b82c03
Improve mysensors config flow (#75122)
* Improve mysensors config flow

* Improve form input order

* Update flow tests
2022-08-07 01:22:50 +02:00
Jc2k 1aa0e64354
Update gree to use the network component to set discovery interfaces (#75812) 2022-08-06 21:45:44 +01:00
Robert Svensson c2f026d0a7
Minor deCONZ clean up (#76323)
* Rename secondary_temperature with internal_temperature

* Prefix binary and sensor descriptions matching on all sensor devices with COMMON_

* Always create entities in the same order

Its been reported previously that if the integration is removed and setup again that entity IDs can change if not sorted in the numerical order

* Rename alarmsystems to alarm_systems

* Use websocket enums

* Don't use legacy pydeconz constants

* Bump pydeconz to v103

* unsub -> unsubscribe
2022-08-06 01:34:27 +02:00
Joakim Plate cdde4f9925
Add bluetooth API to allow rediscovery of address (#76005)
* Add API to allow rediscovery of domains

* Switch to clearing per device

* Drop unneded change
2022-08-05 14:49:34 +02:00
Jan Bouwhuis 741efb89d5
Remove deprecated `send_if_off` option for MQTT climate (#76293)
* Remove `send_if_off` option for mqtt climate

* Use cv.remove()
2022-08-05 13:17:46 +02:00
Erik Montnemery 9aa8838479
Allow storing arbitrary data in repairs issues (#76288) 2022-08-05 13:16:29 +02:00
Erik Montnemery b366090175
Allow creating fixable repairs issues without flows (#76224)
* Allow creating fixable repairs issues without flows

* Add test

* Adjust test
2022-08-05 12:07:51 +02:00
Erik Montnemery 3b29cbcd61
Support creating persistent repairs issues (#76211) 2022-08-05 10:11:20 +02:00
Franck Nijhof 0df4642b62
Remove YAML configuration from Simplepush (#76175) 2022-08-04 21:03:26 +02:00
J. Nick Koston 02ad4843b8
Fix flux_led ignored entries not being respected (#76173) 2022-08-04 19:44:22 +02:00
Aaron Bach b2dc810ea4
More explicitly call out special cases with SimpliSafe authorization code (#76232) 2022-08-04 19:43:02 +02:00
J. Nick Koston 5d7cef6416
Fix race in bluetooth async_process_advertisements (#76176) 2022-08-04 17:58:15 +02:00
J. Nick Koston 63b454c9ed
BLE pairing reliablity fixes for HomeKit Controller (#76199)
- Remove the cached map from memory when unpairing so
  we do not reuse it again if they unpair/repair

- Fixes for accessories that use a config number of
  0

- General reliablity improvements to the pairing process
  under the hood of aiohomekit
2022-08-04 16:38:55 +01:00
Maciej Bieniek 88a5ab1e1e
Bump NextDNS library (#76207) 2022-08-04 14:01:26 +02:00
Jc2k aa3097a3be
Add a Thread network status sensor to homekit_controller (#76209) 2022-08-04 11:55:29 +01:00
Jc2k d5695a2d86
Fix some homekit_controller pylint warnings and (local only) test failures (#76122) 2022-08-04 11:30:37 +01:00
Jan Bouwhuis e6e5b98bc7
Allow climate operation mode fan_only as custom mode in Alexa (#76148)
* Add support for FAN_ONLY mode

* Tests for fan_only as custom mode
2022-08-04 09:13:20 +02:00
Jc2k 72a0ca4871
Add homekit_controller thread node capabilties diagnostic sensor (#76120) 2022-08-03 22:03:10 +01:00
Martin Hjelmare 842cc060f8
Fix zwave_js addon info (#76044)
* Add add-on store info command

* Use add-on store info command in zwave_js

* Fix init tests

* Update tests

* Fix method for addon store info

* Fix response parsing

* Fix store addon installed response parsing

* Remove addon info log that can contain network keys

* Add supervisor store addon info test

* Default to version None if add-on not installed

Co-authored-by: Mike Degatano <michael.degatano@gmail.com>

Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2022-08-03 22:33:05 +02:00
J. Nick Koston bf931f1225
Handle additional bluetooth start exceptions (#76096) 2022-08-02 13:46:43 -10:00
Jc2k a0adfb9e62
Fix serialization of Xiaomi BLE reauth flow (#76095)
* Use data instead of context to fix serialisation bug

* Test change to async_start_reauth
2022-08-02 21:38:38 +01:00
Jc2k f043203b56
Add optional context parameter to async_start_reauth (#76077) 2022-08-02 18:20:37 +02:00
Erik Montnemery 32b1259786
Support multiple trigger instances for a single webhook (#76037) 2022-08-02 08:54:28 +02:00
epenet 3eafe13085
Improve UI in pylint plugin (#74157)
* Adjust FlowResult result type

* Adjust tests

* Adjust return_type

* Use StrEnum for base device_class

* Add test for device_class

* Add and use SentinelValues.DEVICE_CLASS

* Remove duplicate device_class

* Cleanup return-type

* Drop inheritance check from device_class

* Add caching for class methods

* Improve tests

* Adjust duplicate checks

* Adjust tests

* Fix rebase
2022-08-02 00:03:52 +02:00
Jc2k 652a8e9e8a
Add reauth flow to xiaomi_ble, fixes problem adding LYWSD03MMC (#76028) 2022-08-01 22:04:16 +01:00
rhadamantys 7141c36f8b
Fix invalid enocean unique_id (#74508)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-08-01 17:42:47 +02:00
Aaron Godfrey 91384e07d0
Add unique id for todoist calendar entity (#75674)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-08-01 17:15:51 +02:00
Joakim Plate 2dd62b14b6
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-01 16:56:08 +02:00
epenet 1a40d400dc
Add function/property name to pylint message (#75913) 2022-08-01 14:09:47 +02:00
Jc2k 0167875789
Add physical controls lock to homekit_controller (#75993) 2022-07-31 13:30:29 -07:00
mvn23 abb7495ced
Handle failed connection attempts in opentherm_gw (#75961) 2022-07-31 12:21:25 +02:00
Alex Henry ace359b1bd
Add multi-zone support to Anthem AV receiver and distribution solution (#74779)
* Add multi-zone support to Anthem AV receiver and distribution amplifier

* Fix typo in comment

* Convert properties to attribute and add test

* Migrate entity name

* Fix after rebase add strict typing and bump version

* fix typing

* Simplify test

* Small improvement

* remove dispatcher send and use callback
2022-07-30 14:04:24 +02:00
J. Nick Koston 80a9659524
Update to bleak 0.15 (#75941) 2022-07-29 17:53:33 -07:00
Alex Henry bbd7041a73
Refactor and improve anthemav (#75852) 2022-07-29 03:20:05 +02:00
Marc Mueller 003fe9220e
Add protocol types for device_tracker `async_see` and `see` (#75891) 2022-07-29 00:27:47 +02:00
J. Nick Koston 702cef3fc7
Add startup timeout to bluetooth (#75848)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-28 11:14:13 -10:00
Jc2k 10356b9379
Fix Xiaomi BLE not detecting encryption for some devices (#75851) 2022-07-28 19:10:37 +01:00
puddly 8e2f0497ce
ZHA network backup and restore API (#75791)
* Implement WS API endpoints for zigpy backups

* Implement backup restoration

* Display error messages caused by invalid backup JSON

* Indicate to the frontend when a backup is incomplete

* Perform a coordinator backup before HA performs a backup

* Fix `backup.async_post_backup` docstring

* Rename `data` to `backup` in restore command

* Add unit tests for new websocket APIs

* Unit test backup platform

* Move code to overwrite EZSP EUI64 into ZHA

* Include the radio type in the network settings API response
2022-07-28 11:24:31 -04:00
Robert Svensson c16db4c3e1
Make Axis utilise forward_entry_setups (#75178) 2022-07-28 11:41:03 +02:00
Raman Gupta 4aa6300b8b
Update zwave_js WS API names (#75797) 2022-07-27 23:42:17 +02:00
Raman Gupta 44f1d92890
Add new zwave_js notification parameters (#75796) 2022-07-27 23:40:44 +02:00
Paulus Schoutsen b0f877eca2
Add issue_domain to repairs (#75839) 2022-07-27 22:53:51 +02:00
Tom Harris 4ffd6fc4be
Add Insteon lock and load controller devices (#75632) 2022-07-27 10:06:33 -10:00
Paulus Schoutsen 04d00a9acd
Remove learn more URL from Home Assistant alerts (#75838) 2022-07-27 21:59:43 +02:00
Raman Gupta 3a8748bc93
Bump zwave-js-server-python to 0.40.0 (#75795) 2022-07-27 18:01:00 +02:00
IceBotYT d99334eb07
Add LaCrosse View integration (#71896)
* Add new LaCrosse View integration

* Add new LaCrosse View integration

* Add retry logic

* Actually use the start time for the retry logic

* Get new token after 1 hour

* Replace retry logic with more reliable logic

* Improve test coverage

* Add device info and unique id to config entry

* Fix manufacturer name

* Improve token refresh and check sensor permission

* Improve test cover

* Add LaCrosse View to .strict-typing

* Remove empty fields in manifest.json

* Fix mypy

* Add retry logic for get_data

* Add missing break statement in retry decorator

* Fix requirements

* Finish suggestions by Allen Porter

* Suggestions by Allen Porter

* Fix typing issues with calls to get_locations and get_sensors
2022-07-27 07:37:22 -07: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
Jc2k 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
Erik Montnemery 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
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
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
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
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
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
J. Nick Koston 6bb51782fa
Add missing config flow tests for sensorpush (#75629)
* Add missing config flow tests for sensorpush

* merge correct commits from integration
2022-07-23 00:45:22 +02:00
J. Nick Koston 88b9a51811
Fix inkbird config flow tests to correctly test discovery and user flow (#75638)
* Fix inkbird config flow tests to correctly test discovery and user flow

* Fix inkbird config flow tests to correctly test discovery and user flow
2022-07-23 00:43:13 +02:00
Maciej Bieniek 5b555066ea
Add new NextDNS sensors (#74789) 2022-07-23 00:18:22 +02:00
J. Nick Koston 19db6ecf6d
Add missing inkbird config flow tests (#75630) 2022-07-22 23:02:15 +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
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
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
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
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 f3c4bf571b
Raise on bad update data instead of log in PassiveBluetoothDataUpdateCoordinator (#75536) 2022-07-21 09:44:53 -05: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
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
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
Ville Skyttä b749622c01
Migrate Huawei LTE to new entity naming style (#75303) 2022-07-20 22:28:53 +03: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
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
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
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 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
uvjustin d989e4373d
Remove websocket_api send_big_result (#75452) 2022-07-19 21:08:11 -07:00
mkmer 07b4d48e7c
Disable Aladdin Connect battery_level by default (#75441)
* Disable battery_level by default

* Removed async_setup_compnent, renamed constant.
2022-07-20 03:23:14 +02:00
uvjustin 6b60fb9541
Don't use executor in send_big_result (#75427) 2022-07-19 08:40:23 -05:00
Erik Montnemery 403bbda959
Rename resolution_center dismiss to ignore (#75432) 2022-07-19 13:58:39 +02:00
Erik Montnemery c3d536b255
Store creation timestamps for resolution center issues (#75430) 2022-07-19 13:01:39 +02:00
Franck Nijhof 24b3b5fc46
Remove deprecated Senz YAML configuration (#75419) 2022-07-18 21:14:55 -07:00
Franck Nijhof e65018fb85
Clean up deprecated connection class remainders (#75421) 2022-07-18 21:14:41 -07:00
Franck Nijhof d05160a402
Remove deprecated Lyric YAML configuration (#75418) 2022-07-18 21:13:53 -07:00
J. Nick Koston b37f15b1d5
Update bluetooth_le_tracker to use Bleak (#75013)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-18 19:16:24 -05:00
J. Nick Koston 41e4b38c3a
Add device and advertisement to BluetoothServiceInfoBleak (#75381) 2022-07-18 17:58:08 -05:00
J. Nick Koston 1354952977
Migrate LIFX to config entry per device (#74316) 2022-07-18 17:56:34 -05:00