[api] Use entity_types.h X-macro for InitialStateIterator declarations (#16075)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2026-05-05 18:29:48 -05:00
1 parent bf1c339dc1
commit 700676b340
2 files changed
+18 -73

No files matched your search

+4 -1
View File
@@ -67,7 +67,10 @@ INITIAL_STATE_HANDLER(water_heater, water_heater::WaterHeater)
INITIAL_STATE_HANDLER(update, update::UpdateEntity)
#endif
// Special cases (button and event) are already defined inline in subscribe_state.h
// event is an ENTITY_CONTROLLER_TYPE_ but has no state to send.
#ifdef USE_EVENT
bool InitialStateIterator::on_event(event::Event *entity) { return true; }
#endif
InitialStateIterator::InitialStateIterator(APIConnection *client) : client_(client) {}