Erik Montnemery
ecb3bf79f3
Revert "Add support for subentries to config entries" ( #133470 )
...
Revert "Add support for subentries to config entries (#117355 )"
This reverts commit ad15786115
.
2024-12-18 13:51:05 +01:00
Erik Montnemery
ad15786115
Add support for subentries to config entries ( #117355 )
...
* Add support for subentries to config entries
* Improve error handling and test coverage
* Include subentry_id in subentry containers
* Auto-generate subentry_id and add optional unique_id
* Tweak
* Update tests
* Fix stale docstring
* Address review comments
* Typing tweaks
* Add methods to ConfigEntries to add and remove subentry
* Improve ConfigSubentryData typed dict
* Update test snapshots
* Adjust tests
* Fix unique_id logic
* Allow multiple subentries with None unique_id
* Add number of subentries to config entry JSON representation
* Add subentry translation support
* Allow integrations to implement multiple subentry flows
* Update translations schema
* Adjust exception text
* Change subentry flow init step to user
* Prevent creating a subentry with colliding unique_id
* Update tests
* Address review comments
* Remove duplicaetd unique_id collision check
* Remove change from the future
* Improve test coverage
* Add default value for unique_id
2024-12-12 20:16:18 +01:00
G Johansson
0abfbeed3c
Fix flaky gardena_ble test ( #129225 )
2024-10-26 17:57:00 +02:00
epenet
120e17fa1e
Improve logic for detecting unused ignore translations ( #128441 )
2024-10-18 17:59:06 +02:00
epenet
906cecf087
Cleanup unused snapshots ( #128549 )
...
* Cleanup unused snapshots
* Cleanup a few more
* Cleanup systemmonitor
* Cleanup voip
2024-10-17 10:41:57 +02:00
epenet
f41494b7cc
Ensure config_flow abort reasons have translations ( #128140 )
...
* Ensure config_flow abort reasons have translations
* Ignore fake_integration in application_credentials
* Mark gardena_bluetooth as needs fixing
* Mark google as needs fixing
* Mark google_assistant_sdk as needs fixing
* Mark homewizard as needs fixing
* Mark homeworks as needs fixing
* Mark honeywell as needs fixing
* Mark jewish_calendar as needs fixing
* Mark lg_netcast as needs fixing
* Mark lifx as needs fixing
* Mark lyric as needs fixing
* Mark madvr as needs fixing
* Mark matter as needs fixing
* Mark melcloud as needs fixing
* Mark motioneye as needs fixing
* Mark ollama as needs fixing
* Mark philips_js as needs fixing
* Mark spotify as needs fixing
* Mark srp_energy as needs fixing
* Mark subaru as needs fixing
* Mark tplink as needs fixing
* Mark yolink as needs fixing
* Mark youtube as needs fixing
* Fix incorrect comment
2024-10-14 16:39:10 +02:00
Erik Montnemery
b6fe3a3022
Reinitialize bluetooth discovery flow on config entry removal ( #126555 )
...
* Reinitialize bluetooth discovery flow on unignore
* Update homeassistant/components/bluetooth/manager.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Update tests
* Rediscover on any removed config entry
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-24 14:42:46 +02:00
Erik Montnemery
d82bff1bc2
Index config entry discovery_keys by discovery domain ( #126563 )
...
* Index config entry discovery_keys by discovery domain
* Add new signal
* Update tests
* Update homeassistant/config_entries.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Fix imports
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-23 21:48:11 +02:00
Erik Montnemery
b2982c18bb
Reinitialize zeroconf discovery flow on unignore ( #125753 )
...
* Reinitialize zeroconf discovery flow on unignore
* Adjust tests
* Improve comments
* Fix logic for updating discovery keys
* Add tests
* Use mock_config_flow helper in new config_entries test
* Add discovery_keys attribute to ConfigEntry
* Update zeroconf rediscovery
* Change type of ConfigEntry.discovery_keys
* Update tests
* Fix DiscoveryKey.from_json_dict and add tests
* Fix test
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-23 16:49:21 +02:00
epenet
14bc65e8e7
Move gardena_bluetooth base entity to separate module ( #126484 )
2024-09-23 13:06:10 +02:00
Joost Lekkerkerker
f8ba4d41ba
Add support for adding model_id in device info ( #121989 )
2024-07-16 15:12:25 +02:00
Marc Mueller
921430d497
Import Generator from collections.abc (3) ( #120916 )
2024-07-01 12:09:11 +02:00
Erik Montnemery
9bbeb5d608
Add primary_config_entry attribute to device registry entries ( #119959 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Robert Resch <robert@resch.dev>
2024-06-26 12:26:24 +02:00
Joakim Plate
b5a7fb1c33
Add valve entity to gardena ( #120160 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-06-22 17:02:53 +02:00
Paulus Schoutsen
eb89ce47ea
Inline primary integration ( #119860 )
2024-06-18 08:08:08 +02:00
Paulus Schoutsen
836abe68c7
Track primary integration ( #119741 )
...
* Track primary integration
* Update snapshots
* More snapshots updated
* Uno mas
* Update snapshot
2024-06-16 13:26:06 -04:00
Marc Mueller
7195a21126
Fix Generator annotations in tests (2) ( #119019 )
2024-06-07 08:34:38 +02:00
Marc Mueller
33ed4fd862
Import Generator from typing_extensions (3) ( #118990 )
2024-06-06 17:28:59 +02:00
J. Nick Koston
3f0c0a72db
Prevent setup retry from delaying shutdown ( #116328 )
2024-04-28 08:13:51 -05:00
J. Nick Koston
76639252c9
Make discovery flow tasks background tasks ( #116327 )
2024-04-28 08:13:37 -05:00
Sid
6587ee20db
Enable Ruff TRY300 ( #114437 )
...
* Enable Ruff TRY300
* Update validation.py
* Address review comments
2024-03-30 10:37:59 +01:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Erik Montnemery
426f73b1f4
Add State.last_reported ( #113511 )
...
* Add State.last_reported
* Update tests
* Update test snapshots
* Call state_reported listeners when firing state_changed event
* Add tests
2024-03-20 21:05:07 +01:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Marc Mueller
c88b337600
Add empty line after module docstring [tests f-k] ( #112709 )
2024-03-08 14:50:04 +01:00
J. Nick Koston
145c6163a4
Fix race in gardena_bluetooth config flow tests ( #111042 )
2024-02-20 16:08:06 -06:00
Franck Nijhof
e0a9dcd996
Add label registry ( #110821 )
2024-02-19 11:59:08 +01:00
Erik Montnemery
6908497c3d
Add minor version to config entries ( #105479 )
2023-12-12 08:44:35 +01:00
Jan-Philipp Benecke
04a497343d
Update f-g* tests to use entity & device registry fixtures ( #103841 )
2023-11-12 13:07:38 +01:00
Erik Montnemery
1621310ba7
Add serial_number to device registry entries ( #102334 )
...
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-10-22 15:14:44 +02:00
J. Nick Koston
80d2309896
Switch async_track_time_interval to use async_call_later internally ( #99220 )
2023-08-28 13:56:22 -05:00
Joakim Plate
816f834807
Add moisture sensors entities for gardena ( #98282 )
...
Add support for soil moisture sensors for gardena
2023-08-23 22:46:34 +02:00
Erik Montnemery
b885dfa5a8
Add preview to sensor group config and option flows ( #83638 )
2023-08-22 10:29:16 +02:00
Joakim Plate
687bf5e808
Ignore ble name for gardena ( #98126 )
2023-08-21 08:43:52 +02:00
Joakim Plate
990ec1d445
Make gardena closing sensor unavailable when closed ( #98133 )
2023-08-11 13:07:45 +02:00
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma ( #98162 )
2023-08-10 14:27:03 +02:00
Joakim Plate
1c19c54e38
Avoid accessing coordinator in gardena_bluetooth tests ( #96921 )
...
Avoid accessing coordinator in tests
2023-07-20 08:47:26 +02:00
Joakim Plate
80a7447030
Add support for buttons in gardena bluetooth ( #96871 )
...
* Add button to gardena
* Add tests for button
* Bump gardena bluetooth to 1.0.2
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-07-19 10:17:40 +02:00
Joakim Plate
22fbd22943
Add more complete test coverage to gardena bluetooth ( #96874 )
...
* Add tests for switch
* Add tests for number
* Add tests for 0 sensor
* Enable coverage for gardena bluetooth
2023-07-19 00:31:01 +02:00
Joakim Plate
878429fdec
Add binary sensor for valve connectivity for gardena bluetooth ( #96810 )
...
* Add binary_sensor to gardena
* Add tests for binary_sensor
2023-07-18 09:00:25 +02:00
Joakim Plate
a9f7522857
Correct tests for gardena ( #96806 )
2023-07-17 19:22:48 -10:00
Joakim Plate
d02bf837a6
Add some basic tests for gardena ( #96777 )
2023-07-17 21:13:13 +02:00
Joakim Plate
f7ce9b1688
Add support for gardena bluetooth ( #95179 )
...
Add support for gardena bluetooth based water computers.
2023-07-12 16:08:15 +02:00