core/tests/components/enphase_envoy
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
..
fixtures Add storage settings for enphase_envoy batteries without enpower device (#125527) 2024-09-11 13:32:29 +02:00
snapshots Add support for subentries to config entries (#117355) 2024-12-12 20:16:18 +01:00
__init__.py Add fixture files to Enphase_Envoy tests (#121864) 2024-07-16 21:14:46 +02:00
conftest.py Add balanced grid import/export to enphase_envoy (#123154) 2024-09-08 12:15:00 +02:00
test_binary_sensor.py Add storage settings for enphase_envoy batteries without enpower device (#125527) 2024-09-11 13:32:29 +02:00
test_config_flow.py Cleanup unnecessary reconfigure_confirm from config flows (#128086) 2024-10-14 12:57:15 +02:00
test_diagnostics.py Add created_at/modified_at to device registry (#122369) 2024-07-22 19:15:23 +02:00
test_init.py Add option to disable keep-alive for Enphase Envoy connections (#127603) 2024-10-07 10:13:23 +02:00
test_number.py Add storage settings for enphase_envoy batteries without enpower device (#125527) 2024-09-11 13:32:29 +02:00
test_select.py Add storage settings for enphase_envoy batteries without enpower device (#125527) 2024-09-11 13:32:29 +02:00
test_sensor.py Reload enphase_envoy integration upon envoy firmware change detection (#124650) 2024-09-11 19:39:54 +02:00
test_switch.py Add storage settings for enphase_envoy batteries without enpower device (#125527) 2024-09-11 13:32:29 +02:00