[core] Combine entity register + configure_entity_ into one call (#16030)

This commit is contained in:
J. Nick Koston
2026-04-26 22:03:39 -05:00
committed by GitHub
parent 112646a9c4
commit 79b741b8dc
30 changed files with 145 additions and 48 deletions

View File

@@ -29,7 +29,7 @@ def test_button_sets_mandatory_fields(generate_main):
main_cpp = generate_main("tests/component_tests/button/test_button.yaml")
# Then
assert 'wol_1->configure_entity_("wol_test_1",' in main_cpp
assert 'App.register_button(wol_1, "wol_test_1",' in main_cpp
assert "wol_2->set_macaddr(18, 52, 86, 120, 144, 171);" in main_cpp