Webserver utilize Component Iterator to not overload eventstream (#3310)

This commit is contained in:
Jesse Hills authored and GitHub committed 2022-03-23 09:45:05 +13:00
1 parent e621b938e3
commit bfbf88b2ea
13 files changed
+217 -134

No files matched your search

+1 -2
View File
@@ -50,8 +50,7 @@ bool InitialStateIterator::on_select(select::Select *select) {
#ifdef USE_LOCK
bool InitialStateIterator::on_lock(lock::Lock *a_lock) { return this->client_->send_lock_state(a_lock, a_lock->state); }
#endif
InitialStateIterator::InitialStateIterator(APIServer *server, APIConnection *client)
: ComponentIterator(server), client_(client) {}
InitialStateIterator::InitialStateIterator(APIConnection *client) : client_(client) {}
} // namespace api
} // namespace esphome