This commit is contained in:
J. Nick Koston
2025-12-20 21:31:30 -10:00
parent 6dd41a14c4
commit c1463a569c

View File

@@ -228,15 +228,17 @@ void APIConnection::loop() {
}
}
#ifdef USE_CAMERA
this->try_send_camera_image_();
#endif
#ifdef USE_API_HOMEASSISTANT_STATES
if (state_subs_at_ >= 0) {
this->process_state_subscriptions_();
}
#endif
#ifdef USE_CAMERA
// Process camera last - state updates are higher priority
// (missing a frame is fine, missing a state update is not)
this->try_send_camera_image_();
#endif
}
bool APIConnection::send_disconnect_response(const DisconnectRequest &msg) {