Commit Graph

66433 Commits

Author SHA1 Message Date
J. Nick Koston 0571a75c99
Bump zeroconf to 0.108.0 (#100148) 2023-09-11 14:42:13 -05:00
puddly cbb28b6943
Migrate internal ZHA data to a dataclasses (#100127)
* Cache device triggers on startup

* reorg zha init

* don't reuse gateway

* don't nuke yaml configuration

* review comments

* Add unit tests

* Do not cache device and entity registries

* [WIP] Wrap ZHA data in a dataclass

* [WIP] Get unit tests passing

* Use a helper function for getting the gateway object to fix annotations

* Remove `bridge_id`

* Fix typing issues with entity references in group websocket info

* Use `Platform` instead of `str` for entity platform matching

* Use `get_zha_gateway` in a few more places

* Fix flaky unit test

* Use `slots` for ZHA data

Co-authored-by: J. Nick Koston <nick@koston.org>

---------

Co-authored-by: David F. Mulcahey <david.mulcahey@icloud.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-09-11 21:39:33 +02:00
Joost Lekkerkerker 5c206de906
Decouple Withings webhook tests from YAML (#100143) 2023-09-11 14:06:20 -05:00
Niels Perfors ad5e9e9f5b
Remove code owner Verisure (#100145) 2023-09-11 13:43:59 -05:00
J. Nick Koston d5fc92eb90
Bump zeroconf to 0.107.0 (#100134)
changelog: https://github.com/python-zeroconf/python-zeroconf/compare/0.105.0...0.107.0
2023-09-11 20:34:35 +02:00
J. Nick Koston fdb9ac20c3
Migrate mobile_app to use json helper (#100136) 2023-09-11 12:08:48 -05:00
TJ Horner 17db20fdd7
Add Apple WeatherKit integration (#99895) 2023-09-11 12:06:55 -05:00
J. Nick Koston 0fe88d60ac
Guard expensive debug logging with isEnabledFor in alexa (#100137) 2023-09-11 11:39:10 -05:00
Erik Montnemery 18e08bc79f
Bump hatasmota to 0.7.2 (#100129) 2023-09-11 11:35:48 -05:00
starkillerOG 56678851af
Fix inverse naming of function in Reolink (#100113) 2023-09-11 18:03:22 +02:00
Erik Montnemery 6ccb74997c
Fix ScrapeSensor.async_added_to_hass (#100125) 2023-09-11 16:58:56 +02:00
Álvaro Fernández Rojas 9c65e59cc8
Remove AEMET daily precipitation sensor test (#100118) 2023-09-11 09:46:59 -05:00
Robert Svensson d8445a79fc
UniFi streamline loading platforms (#100071)
* Streamline loading platforms

* Move platform registration logic to UnifiController class
2023-09-11 15:55:27 +02:00
J. Nick Koston 791482406c
Cleanup isinstance checks in zeroconf (#100090) 2023-09-11 08:13:25 -05:00
J. Nick Koston f4a7bb47fe
Bump zeroconf to 0.105.0 (#100084) 2023-09-11 08:09:29 -05:00
J. Nick Koston 64fde640ca
Bump pyunifiprotect to 4.20.0 (#100092) 2023-09-11 08:08:19 -05:00
puddly a6f325d05a
Cache device trigger info during ZHA startup (#99764)
* Do not connect to the radio hardware within `_connect_zigpy_app`

* Make `connect_zigpy_app` public

* Create radio manager instances from config entries

* Cache device triggers on startup

* reorg zha init

* don't reuse gateway

* don't nuke yaml configuration

* review comments

* Fix existing unit tests

* Ensure `app.shutdown` is called, not just `app.disconnect`

* Revert creating group entities and device registry entries early

* Add unit tests

---------

Co-authored-by: David F. Mulcahey <david.mulcahey@icloud.com>
2023-09-11 14:36:01 +02:00
Erik Montnemery 42046a3ce2
Fix TriggerEntity.async_added_to_hass (#100119) 2023-09-11 14:33:43 +02:00
Joost Lekkerkerker a6e9bf830c
Decouple Withings binary sensor test from YAML (#100120) 2023-09-11 13:58:47 +02:00
Joost Lekkerkerker 5781e5e03e
Use json to store Withings test data fixtures (#99998)
* Decouple Withings sensor tests from yaml

* Improve Withings config flow tests

* Improve Withings config flow tests

* Fix feedback

* Use fixtures to store Withings testdata structures

* Use fixtures to store Withings testdata structures

* Use JSON

* Fix

* Use load_json_object_fixture
2023-09-11 12:36:37 +02:00
Marc Mueller 58072189fc
Update black to 23.9.1 (#100108) 2023-09-11 12:14:50 +02:00
Tiit Rätsep 10bb8f5396
Fix Soma cover tilt (#99717) 2023-09-11 11:15:46 +02:00
Jan-Philipp Benecke a4cb06d09f
Also handle DiscovergyClientError as UpdateFailed (#100038)
* Also handle DiscovergyClientError as UpdateFailed

* Change AccessTokenExpired to InvalidLogin

* Also add DiscovergyClientError to config flow and tests
2023-09-11 11:00:50 +02:00
Jan Bouwhuis 20d0ebe3fa
Add TYPE_CHECKING condition on type assertions for mqtt (#100107)
Add TYPE_CHECKING condition on type assertions
2023-09-11 10:58:33 +02:00
Rami Mosleh eb0099dee8
Move smtp constants to const.py (#99542) 2023-09-11 09:36:55 +02:00
Joost Lekkerkerker 43fe8d16c3
Use shorthand attributes in ZAMG (#99925)
Co-authored-by: Robert Resch <robert@resch.dev>
2023-09-11 09:32:43 +02:00
Greig Sheridan f121e891fd
Remove duplicated word in enphase description text (#100098) 2023-09-11 09:16:21 +02:00
Simone Chemelli 0fb678abfc
Remove Comelit alarm data retrieval (#100067)
fix: remove alarm data retrieval
2023-09-11 08:49:10 +02:00
Michael Arthur 8beace265b
Add unit tests for sensors Electric Kiwi (#97723)
* add unit tests for sensors

* newline long strings

* unit test check and move time

* rename entry to entity

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* add types to test

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* fix newlined f strings

* remove if statement

* add some more explaination

* Update datetime

Co-authored-by: Robert Resch <robert@resch.dev>

* Simpler time update

Co-authored-by: Robert Resch <robert@resch.dev>

* add missing datetime import

* Update docustring - grammar

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

* address comments and issues raised

* address docstrings too long

* Fix docstring

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-09-11 01:30:25 +02:00
jimmyd-be 6c45f43c5d
Renson number entity (#99358)
* Starting number sensor

* Filter change config

* Add translation to number entity

* add number entity to .coveragerc

* Moved has_entity_name to description + changed name of entity

* Add self.coordinator.async_request_refresh() after changing value

* Add device calss and unit of measurement to number entity
2023-09-11 01:24:57 +02:00
G Johansson 73a695d857
Fix incorrect docstring in TV Camera sensor test (#100083) 2023-09-11 01:22:33 +02:00
G Johansson 954293f77e
Add binary sensors to Trafikverket Camera (#100082) 2023-09-11 01:12:19 +02:00
G Johansson 0fae65abde
Fix missed name to translation key in Sensibo (#100080) 2023-09-11 01:10:59 +02:00
G Johansson 4ebb6bb823
Add sensors to Trafikverket Camera (#100078)
* Add sensors to Trafikverket Camera

* Remove active

* Fix test len
2023-09-11 00:56:12 +02:00
Matrix 45fc158823
Add yolink siren battery entity (#99310) 2023-09-11 00:31:58 +02:00
J. Nick Koston 80e05716c0
Bump dbus-fast to 2.2.0 (#100076) 2023-09-10 16:38:39 -05:00
dependabot[bot] 4474face88
Bump tibdex/github-app-token from 1.8.0 to 1.8.2 (#99434)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-10 22:23:18 +02:00
J. Nick Koston 2bda34b98a
Bump flux_led to 1.0.4 (#100050) 2023-09-10 21:45:37 +02:00
J. Nick Koston 02a4289c6e
Bump zeroconf to 0.104.0 (#100068) 2023-09-10 21:32:40 +02:00
J. Nick Koston 3b8d99dcd8
Add __slots__ to translation cache (#100069) 2023-09-10 20:46:55 +02:00
Álvaro Fernández Rojas 3238386f48
Add water heater support to Airzone (#98401)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-09-10 12:31:11 -05:00
Simone Chemelli a5a82b94ac
Bump aiovodafone to 0.2.0 (#100062)
bump aiovodafone to 0.2.0
2023-09-10 19:09:21 +02:00
J. Nick Koston 4f0cd5589c
Bump aiohomekit to 3.0.3 (#100047) 2023-09-10 12:01:12 -05:00
Tony 3b25262d6c
Address ruckus_unleashed late review (#99411) 2023-09-10 18:49:17 +02:00
Jan-Philipp Benecke 7acc606dd8
Remove unnecessary argument from discovergy coordinator (#100058) 2023-09-10 11:25:55 -05:00
Jan Bouwhuis 63852c565f
Use hass.loop.create_future() in envisalink (#100057) 2023-09-10 11:25:25 -05:00
J. Nick Koston 50382a609c
Create recorder futures with loop.create_future() (#100049) 2023-09-10 11:24:57 -05:00
Aidan Timson 51899ce5ad
Add System Bridge notifications (#82318)
* System bridge notifications

Add notify platform

Add file to coverage

Restore and fix lint after rebase

Cleanup

Use entity to register notify service

Fix pylint

Update package to 3.6.0 and add audio actions

Update package to fix conflict

Remove addition

* Run pre-commit run --all-files

* Update homeassistant/components/system_bridge/notify.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Format

* Fix

* Remove duplicate import

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-09-10 17:32:52 +02:00
Jan Bouwhuis 6899245020
Use hass.loop.create_future() for bluetooth (#100054) 2023-09-10 17:16:16 +02:00
Jan Bouwhuis 1a5f093397
Uer hass.loop.create_future() for MQTT client (#100053) 2023-09-10 17:15:46 +02:00