core/tests/components/esphome
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
..
bluetooth
snapshots Add support for subentries to config entries (#117355) 2024-12-12 20:16:18 +01:00
__init__.py
conftest.py
test_alarm_control_panel.py
test_assist_satellite.py Add wake word select for ESPHome Assist satellite (#131309) 2024-11-26 22:59:49 -05:00
test_binary_sensor.py
test_bluetooth.py
test_button.py
test_camera.py
test_climate.py
test_config_flow.py Fix esphome mqtt discovery by handling case where payload is a empty string (#129969) 2024-11-07 11:16:01 -06:00
test_cover.py
test_dashboard.py
test_date.py
test_datetime.py
test_diagnostics.py Add support for subentries to config entries (#117355) 2024-12-12 20:16:18 +01:00
test_entity.py
test_entry_data.py
test_enum_mapper.py
test_event.py
test_fan.py
test_ffmpeg_proxy.py Improve shutdown of esphome ffmpeg proxy (#129326) 2024-10-30 13:46:05 +01:00
test_init.py
test_light.py Migrate esphome light tests to use Kelvin (#133008) 2024-12-12 15:11:34 +01:00
test_lock.py
test_manager.py
test_media_player.py Add optional flag to bypass the media proxy in esphome media players (#131191) 2024-11-21 11:47:22 -05:00
test_number.py
test_repairs.py
test_select.py Add wake word select for ESPHome Assist satellite (#131309) 2024-11-26 22:59:49 -05:00
test_sensor.py
test_switch.py
test_text.py
test_time.py
test_update.py Do not create ESPHome Dashboard update entity if no configuration found (#129751) 2024-11-15 17:22:06 +01:00
test_valve.py